Note that the warnings should be the first thing in the module.

This commit is contained in:
Brett Cannon 2008-05-12 02:48:04 +00:00
parent 3b3bb5f4cc
commit c9e5488451
1 changed files with 3 additions and 2 deletions

View File

@ -927,8 +927,9 @@ In Python 2.6
/////////////
#. Add the following code to the deprecated module if it is
implemented in Python (adjusting the
module name and the ``warnings`` import and needed)::
implemented in Python as the first piece of executed code
(adjusting the module name and the ``warnings`` import and
needed)::
from warnings import warnpy3k
warnpy3k("the XXX module has been removed in Python 3.0",