Merge pull request #761 from berkerpeksag/fix-string-types

Use six.string_types instead of basestring.
This commit is contained in:
Randall Leeds 2014-05-21 23:41:57 -07:00
commit ca43784e86

View File

@ -84,7 +84,7 @@ class SafeAtoms(dict):
def __init__(self, atoms):
dict.__init__(self)
for key, value in atoms.items():
if isinstance(value, basestring):
if isinstance(value, string_types):
self[key] = value.replace('"', '\\"')
else:
self[key] = value