[Python-checkins] r63080 - in python/trunk: Doc/library/queue.rst Lib/test/test_py3kwarn.py
alexandre.vassalotti
python-checkins at python.org
Sun May 11 22:04:03 CEST 2008
Author: alexandre.vassalotti
Date: Sun May 11 22:04:03 2008
New Revision: 63080
Log:
Added test for Queue rename warning.
Added note to documentation about Queue rename.
Modified:
python/trunk/Doc/library/queue.rst
python/trunk/Lib/test/test_py3kwarn.py
Modified: python/trunk/Doc/library/queue.rst
==============================================================================
--- python/trunk/Doc/library/queue.rst (original)
+++ python/trunk/Doc/library/queue.rst Sun May 11 22:04:03 2008
@@ -5,6 +5,8 @@
.. module:: Queue
:synopsis: A synchronized queue class.
+.. note::
+ The :mod:`Queue` module has been renamed to `queue` in Python 3.0.
The :mod:`Queue` module implements multi-producer, multi-consumer queues.
It is especially useful in threaded programming when information must be
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 22:04:03 2008
@@ -183,7 +183,7 @@
class TestStdlibRenames(unittest.TestCase):
- renames = {'copy_reg': 'copyreg'}
+ renames = {'copy_reg': 'copyreg', 'Queue': 'queue'}
def check_rename(self, module_name, new_module_name):
"""Make sure that:
More information about the Python-checkins
mailing list