commit | 1d22d00e97f62c79c58b03603824aa254d712708 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sun Apr 05 01:04:38 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sun Apr 05 01:04:38 2009 +0000 |
tree | ebce82551de3b784f533ebe4552bad7e6112bc87 | |
parent | f9c8193b76beaf2585c2747d0645faf86e237d64 [diff] |
compare types with is
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 @@ 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()