diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-04-05 01:04:38 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-04-05 01:04:38 (GMT) |
commit | 1d22d00e97f62c79c58b03603824aa254d712708 (patch) | |
tree | ebce82551de3b784f533ebe4552bad7e6112bc87 /Lib | |
parent | f9c8193b76beaf2585c2747d0645faf86e237d64 (diff) | |
download | cpython-1d22d00e97f62c79c58b03603824aa254d712708.zip cpython-1d22d00e97f62c79c58b03603824aa254d712708.tar.gz cpython-1d22d00e97f62c79c58b03603824aa254d712708.tar.bz2 |
compare types with is
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/pickle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py index 9667781..abed1ca 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -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() |