Kaydet (Commit) 905a97d4 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Issue #26013: Added compatibility with broken protocol 2 pickles created

in old Python 3 versions (3.4.3 and lower).
...@@ -177,6 +177,13 @@ IMPORT_MAPPING.update({ ...@@ -177,6 +177,13 @@ IMPORT_MAPPING.update({
'DocXMLRPCServer': 'xmlrpc.server', 'DocXMLRPCServer': 'xmlrpc.server',
'SimpleHTTPServer': 'http.server', 'SimpleHTTPServer': 'http.server',
'CGIHTTPServer': 'http.server', 'CGIHTTPServer': 'http.server',
# For compatibility with broken pickles saved in old Python 3 versions
'UserDict': 'collections',
'UserList': 'collections',
'UserString': 'collections',
'whichdb': 'dbm',
'StringIO': 'io',
'cStringIO': 'io',
}) })
REVERSE_IMPORT_MAPPING.update({ REVERSE_IMPORT_MAPPING.update({
......
...@@ -131,6 +131,9 @@ Core and Builtins ...@@ -131,6 +131,9 @@ Core and Builtins
Library Library
------- -------
- Issue #26013: Added compatibility with broken protocol 2 pickles created
in old Python 3 versions (3.4.3 and lower).
- Issue #26129: Deprecated accepting non-integers in grp.getgrgid(). - Issue #26129: Deprecated accepting non-integers in grp.getgrgid().
- Issue #25850: Use cross-compilation by default for 64-bit Windows. - Issue #25850: Use cross-compilation by default for 64-bit Windows.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment