mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
compare types with is
This commit is contained in:
parent
f9c8193b76
commit
1d22d00e97
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue