summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2007-08-29 19:07:40 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2007-08-29 19:07:40 (GMT)
commita5dc3db3d162b10b51131113d19ce16244c9fe0e (patch)
tree71ba3f27adc4366cb6c130d8c95a454cf8be2985
parente3e3701f8f1a3c9a4ae84cde793e421ce0460d83 (diff)
downloadcpython-a5dc3db3d162b10b51131113d19ce16244c9fe0e.zip
cpython-a5dc3db3d162b10b51131113d19ce16244c9fe0e.tar.gz
cpython-a5dc3db3d162b10b51131113d19ce16244c9fe0e.tar.bz2
Change string literals to bytes, since they are compared to bytes.
-rw-r--r--Lib/pickletools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pickletools.py b/Lib/pickletools.py
index 537afd2..6ec3ac2 100644
--- a/Lib/pickletools.py
+++ b/Lib/pickletools.py
@@ -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: