mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Revert copy_reg -> copyreg rename.
This commit is contained in:
parent
06d2a2cb0e
commit
dffbf5f542
23 changed files with 83 additions and 94 deletions
|
@ -278,12 +278,12 @@ def _subx(pattern, template):
|
|||
|
||||
# register myself for pickling
|
||||
|
||||
import copyreg
|
||||
import copy_reg
|
||||
|
||||
def _pickle(p):
|
||||
return _compile, (p.pattern, p.flags)
|
||||
|
||||
copyreg.pickle(_pattern_type, _pickle, _compile)
|
||||
copy_reg.pickle(_pattern_type, _pickle, _compile)
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
# experimental stuff (see python-dev discussions for details)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue