changeset: 99966:35ff0976b211 parent: 99964:96a7603d25ea parent: 99965:270add17f203 user: Serhiy Storchaka date: Mon Jan 18 21:36:03 2016 +0200 files: Misc/NEWS description: Issue #26013: Added compatibility with broken protocol 2 pickles created in old Python 3 versions (3.4.3 and lower). diff -r 96a7603d25ea -r 35ff0976b211 Lib/_compat_pickle.py --- a/Lib/_compat_pickle.py Mon Jan 18 19:40:23 2016 +0200 +++ b/Lib/_compat_pickle.py Mon Jan 18 21:36:03 2016 +0200 @@ -177,6 +177,13 @@ 'DocXMLRPCServer': 'xmlrpc.server', 'SimpleHTTPServer': '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({ diff -r 96a7603d25ea -r 35ff0976b211 Misc/NEWS --- a/Misc/NEWS Mon Jan 18 19:40:23 2016 +0200 +++ b/Misc/NEWS Mon Jan 18 21:36:03 2016 +0200 @@ -131,6 +131,9 @@ 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 #25850: Use cross-compilation by default for 64-bit Windows.