diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-26 08:37:01 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-26 08:37:01 (GMT) |
commit | 21d7533c4c13489b4b3baae59f9e25cd038fb16b (patch) | |
tree | 76bae1e02636081cb504fa39fb5a33629f39c380 /Lib/pickle.py | |
parent | 5106d044ecd6d7a8124dd4b526b77588747e0167 (diff) | |
download | cpython-21d7533c4c13489b4b3baae59f9e25cd038fb16b.zip cpython-21d7533c4c13489b4b3baae59f9e25cd038fb16b.tar.gz cpython-21d7533c4c13489b4b3baae59f9e25cd038fb16b.tar.bz2 |
Issue #23094: Fixed readline with frames in Python implementation of pickle.
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r-- | Lib/pickle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py index 663773f..e38ecac 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 |