diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2002-04-10 21:36:11 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2002-04-10 21:36:11 (GMT) |
commit | 73019073583d786f8c486da11978c589daf36138 (patch) | |
tree | ad129b22cac1ea2a99f8f371511be1b6b90553f4 /Lib/pre.py | |
parent | 2854c478be6d179d1f6a80a99ae7994ac351ac0d (diff) | |
download | cpython-73019073583d786f8c486da11978c589daf36138.zip cpython-73019073583d786f8c486da11978c589daf36138.tar.gz cpython-73019073583d786f8c486da11978c589daf36138.tar.bz2 |
Add deprecation warning to 'pre' module
Diffstat (limited to 'Lib/pre.py')
-rw-r--r-- | Lib/pre.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -87,6 +87,12 @@ This module also defines an exception 'error'. import sys 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", "VERBOSE","error"] |