[Python-3000-checkins] r57675 - python/branches/py3k/Lib/pickletools.py
jeremy.hylton
python-3000-checkins at python.org
Wed Aug 29 21:07:40 CEST 2007
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:
More information about the Python-3000-checkins
mailing list