[Python-checkins] r63046 - in python/trunk: Doc/library/copy_reg.rst Lib/test/test_py3kwarn.py
alexandre.vassalotti
python-checkins at python.org
Sun May 11 11:01:51 CEST 2008
Author: alexandre.vassalotti
Date: Sun May 11 11:01:51 2008
New Revision: 63046
Log:
Added test for copy_reg rename.
Added note to documentation about copy_reg rename.
Modified:
python/trunk/Doc/library/copy_reg.rst
python/trunk/Lib/test/test_py3kwarn.py
Modified: python/trunk/Doc/library/copy_reg.rst
==============================================================================
--- python/trunk/Doc/library/copy_reg.rst (original)
+++ python/trunk/Doc/library/copy_reg.rst Sun May 11 11:01:51 2008
@@ -5,6 +5,8 @@
.. module:: copy_reg
:synopsis: Register pickle support functions.
+.. note::
+ The :mod:`copy_reg` module has been renamed to `copyreg` in Python 3.0.
.. index::
module: pickle
Modified: python/trunk/Lib/test/test_py3kwarn.py
==============================================================================
--- python/trunk/Lib/test/test_py3kwarn.py (original)
+++ python/trunk/Lib/test/test_py3kwarn.py Sun May 11 11:01:51 2008
@@ -183,7 +183,7 @@
class TestStdlibRenames(unittest.TestCase):
- renames = {}
+ renames = {'copy_reg': 'copyreg'}
def check_rename(self, module_name, new_module_name):
"""Make sure that:
More information about the Python-checkins
mailing list