compare types with is

This commit is contained in:
Benjamin Peterson 2009-04-05 01:04:38 +00:00
parent f9c8193b76
commit 1d22d00e97
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ class Pickler:
self.memoize(obj)
dispatch[UnicodeType] = save_unicode
if StringType == UnicodeType:
if StringType is UnicodeType:
# This is true for Jython
def save_string(self, obj, pack=struct.pack):
unicode = obj.isunicode()