mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Update copyreg from v3.14.2
This commit is contained in:
committed by
Lee Dogeon
parent
dbbd921a53
commit
4c670ba5a2
5
Lib/copyreg.py
vendored
5
Lib/copyreg.py
vendored
@@ -36,6 +36,11 @@ def pickle_union(obj):
|
||||
|
||||
pickle(type(int | str), pickle_union)
|
||||
|
||||
def pickle_super(obj):
|
||||
return super, (obj.__thisclass__, obj.__self__)
|
||||
|
||||
pickle(super, pickle_super)
|
||||
|
||||
# Support for pickling new-style objects
|
||||
|
||||
def _reconstructor(cls, base, state):
|
||||
|
||||
Reference in New Issue
Block a user