summaryrefslogtreecommitdiff
path: root/Lib/pickle.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-01-26 10:37:44 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2015-01-26 10:37:44 +0200
commit230586739cc090ededbe45f101d8df75e5772455 (patch)
treeef441ff65c93df237a487a69c637c9ee349f9653 /Lib/pickle.py
parent0e992b352aff5fae23ee0f8893e68ce27cba6af7 (diff)
parent21d7533c4c13489b4b3baae59f9e25cd038fb16b (diff)
downloadcpython-git-230586739cc090ededbe45f101d8df75e5772455.tar.gz
Issue #23094: Fixed readline with frames in Python implementation of pickle.
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r--Lib/pickle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 663773f3d9..e38ecac824 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -242,7 +242,7 @@ class _Unframer:
if not data:
self.current_frame = None
return self.file_readline()
- if data[-1] != b'\n':
+ if data[-1] != b'\n'[0]:
raise UnpicklingError(
"pickle exhausted before end of frame")
return data