]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Change string literals to bytes, since they are compared to bytes.
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 29 Aug 2007 19:07:40 +0000 (19:07 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 29 Aug 2007 19:07:40 +0000 (19:07 +0000)
Lib/pickletools.py

index 537afd26a65947b6f1d2dfea50d05afd4ac17177..6ec3ac26020287abb003c5effcd50ad6bd2a61e5 100644 (file)
@@ -503,9 +503,9 @@ def read_decimalnl_short(f):
     # 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: