mirror of
https://github.com/python/cpython
synced 2024-11-05 18:12:54 +00:00
1be3260a90
The sre_* modules are now deprecated.
7 lines
231 B
Python
7 lines
231 B
Python
import warnings
|
|
warnings.warn(f"module {__name__!r} is deprecated",
|
|
DeprecationWarning,
|
|
stacklevel=2)
|
|
|
|
from re import _compiler as _
|
|
globals().update({k: v for k, v in vars(_).items() if k[:2] != '__'})
|