Author: jeremy.hylton
Date: Wed Aug 29 21:07:40 2007
New Revision: 57675

Modified:
   python/branches/py3k/Lib/pickletools.py
Log:
Change string literals to bytes, since they are compared to bytes.


Modified: python/branches/py3k/Lib/pickletools.py
==============================================================================
--- python/branches/py3k/Lib/pickletools.py     (original)
+++ python/branches/py3k/Lib/pickletools.py     Wed Aug 29 21:07:40 2007
@@ -503,9 +503,9 @@
     # It's not necessarily true that the result fits in a Python short int:
     # the pickle may have been written on a 64-bit box.  There's also a hack
     # for True and False here.
-    if s == "00":
+    if s == b"00":
         return False
-    elif s == "01":
+    elif s == b"01":
         return True
 
     try:
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to