mirror of https://github.com/python/cpython
compare types with is
This commit is contained in:
parent
f9c8193b76
commit
1d22d00e97
|
@ -501,7 +501,7 @@ class Pickler:
|
||||||
self.memoize(obj)
|
self.memoize(obj)
|
||||||
dispatch[UnicodeType] = save_unicode
|
dispatch[UnicodeType] = save_unicode
|
||||||
|
|
||||||
if StringType == UnicodeType:
|
if StringType is UnicodeType:
|
||||||
# This is true for Jython
|
# This is true for Jython
|
||||||
def save_string(self, obj, pack=struct.pack):
|
def save_string(self, obj, pack=struct.pack):
|
||||||
unicode = obj.isunicode()
|
unicode = obj.isunicode()
|
||||||
|
|
Loading…
Reference in New Issue