From 7fcafe47c34612afb530e759e55d64d31fc6d84e Mon Sep 17 00:00:00 2001 From: Josef Skladanka Date: Mar 28 2018 12:12:16 +0000 Subject: Use proper class for string-type detection --- diff --git a/resultsdb_api.py b/resultsdb_api.py index 133aef2..2125b20 100644 --- a/resultsdb_api.py +++ b/resultsdb_api.py @@ -32,7 +32,7 @@ _KEEP = object() def make_unicode(string): # because six.u() can not have an unicode on input, and we sometimes do get unicode params... - return string if isinstance(string, unicode) else six.u(string) + return string if isinstance(string, six.text_type) else six.u(string) def _fparams(expand_kwargs=True): """Gets the parameters of the function, from which _fparams is called