summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-05-31 08:29:39 (GMT)
committerGitHub <noreply@github.com>2019-05-31 08:29:39 (GMT)
commit38ab7d4721b422547f7b46b9d68968863fa70573 (patch)
treeaac2c1543f721338b6cf665e9d289ccad43a8af6 /Misc/NEWS.d/next
parentba0430211f5101c9d748d72b03926ca79c5252a8 (diff)
downloadcpython-38ab7d4721b422547f7b46b9d68968863fa70573.zip
cpython-38ab7d4721b422547f7b46b9d68968863fa70573.tar.gz
cpython-38ab7d4721b422547f7b46b9d68968863fa70573.tar.bz2
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.
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r--Misc/NEWS.d/next/Library/2017-10-21-12-07-56.bpo-31829.6IhP-O.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-10-21-12-07-56.bpo-31829.6IhP-O.rst b/Misc/NEWS.d/next/Library/2017-10-21-12-07-56.bpo-31829.6IhP-O.rst
new file mode 100644
index 0000000..aefb8ae
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2017-10-21-12-07-56.bpo-31829.6IhP-O.rst
@@ -0,0 +1,3 @@
+``\r``, ``\0`` and ``\x1a`` (end-of-file on Windows) are now escaped in
+protocol 0 pickles of Unicode strings. This allows to load them without loss
+from files open in text mode in Python 2.