diff options
Diffstat (limited to 'jsonrpclib/jsonclass.py')
-rw-r--r-- | jsonrpclib/jsonclass.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jsonrpclib/jsonclass.py b/jsonrpclib/jsonclass.py index 34a1939..31f829d 100644 --- a/jsonrpclib/jsonclass.py +++ b/jsonrpclib/jsonclass.py @@ -6,10 +6,10 @@ from jsonrpclib import config iter_types = (dict, list, tuple) value_types = (bool, ) try: - string_types = (str, unicode) + string_types = (basestring, ) # Python 2.7 numeric_types = (int, long, float) except NameError: - string_types = (str, ) + string_types = (str, ) # Python 3.x numeric_types = (int, float) supported_types = iter_types+string_types+numeric_types+value_types |