[Python-checkins] r71206 - python/trunk/Lib/pickle.py

benjamin.peterson python-checkins at python.org
Sun Apr 5 03:04:38 CEST 2009


Author: benjamin.peterson
Date: Sun Apr 5 03:04:38 2009
New Revision: 71206
Log:
compare types with is
Modified:
 python/trunk/Lib/pickle.py
Modified: python/trunk/Lib/pickle.py
==============================================================================
--- python/trunk/Lib/pickle.py	(original)
+++ python/trunk/Lib/pickle.py	Sun Apr 5 03:04:38 2009
@@ -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()


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /