]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-31829: Make protocol 0 pickles be loadable in text mode in Python 2. (GH-11859)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 12 Jun 2019 11:50:11 +0000 (04:50 -0700)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2019 11:50:11 +0000 (04:50 -0700)
commitd561f848b235f2011a43b705d112055b92fa2366
tree17367ffd5a657840af191bbedb1b99befbf8d38e
parent534136ac6790a701e24f364a9b7f1e34bf5f3ce7
bpo-31829: Make protocol 0 pickles be loadable in text mode in Python 2. (GH-11859)

Escape ``\r``, ``\0`` and ``\x1a`` (end-of-file on Windows) in Unicode strings.
(cherry picked from commit 38ab7d4721b422547f7b46b9d68968863fa70573)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/pickle.py
Lib/test/pickletester.py
Misc/NEWS.d/next/Library/2017-10-21-12-07-56.bpo-31829.6IhP-O.rst [new file with mode: 0644]
Modules/_pickle.c