mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00

Renamed copy_reg to copyreg in the standard library, to avoid spurious warnings and ease later merging to py3k branch. Public documentation remains intact.
8 lines
192 B
Python
8 lines
192 B
Python
import sys
|
|
from warnings import warnpy3k
|
|
|
|
warnpy3k("the copy_reg module has been renamed "
|
|
"to 'copyreg' in Python 3.0", stacklevel=2)
|
|
|
|
import copyreg
|
|
sys.modules[__name__] = copyreg
|