[Python-checkins] python/dist/src/Lib pre.py,1.10,1.11
akuchling@sourceforge.net
akuchling@sourceforge.net
Wed, 10 Apr 2002 14:36:14 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv24500
Modified Files:
pre.py
Log Message:
Add deprecation warning to 'pre' module
Index: pre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pre.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** pre.py 11 May 2001 19:20:17 -0000 1.10
--- pre.py 10 Apr 2002 21:36:11 -0000 1.11
***************
*** 88,91 ****
--- 88,97 ----
from pcre import *
+ # XXX This module is deprecated as of Python 2.3, and should be removed
+ # in the version that follows 2.3.
+ import warnings as _warnings
+ _warnings.warn("Please use the 're' module, not the 'pre' module",
+ DeprecationWarning)
+
__all__ = ["match","search","sub","subn","split","findall","escape","compile",
"I","L","M","S","X","IGNORECASE","LOCALE","MULTILINE","DOTALL",