Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a5dc3db

Browse files
committed
Change string literals to bytes, since they are compared to bytes.
1 parent e3e3701 commit a5dc3db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/pickletools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,9 +503,9 @@ def read_decimalnl_short(f):
503503
# It's not necessarily true that the result fits in a Python short int:
504504
# the pickle may have been written on a 64-bit box. There's also a hack
505505
# for True and False here.
506-
if s == "00":
506+
if s == b"00":
507507
return False
508-
elif s == "01":
508+
elif s == b"01":
509509
return True
510510

511511
try:

0 commit comments

Comments
 (0)