From 1d22d00e97f62c79c58b03603824aa254d712708 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 5 Apr 2009 01:04:38 +0000 Subject: [PATCH] compare types with is --- Lib/pickle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/pickle.py b/Lib/pickle.py index 9667781a8c3..abed1ca4fab 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()