1
0
mirror of https://github.com/python/cpython synced 2024-07-08 23:50:45 +00:00
cpython/Lib/sre_parse.py
Serhiy Storchaka 1be3260a90
bpo-47152: Convert the re module into a package (GH-32177)
The sre_* modules are now deprecated.
2022-04-02 11:35:13 +03:00

8 lines
229 B
Python

import warnings
warnings.warn(f"module {__name__!r} is deprecated",
DeprecationWarning,
stacklevel=2)
from re import _parser as _
globals().update({k: v for k, v in vars(_).items() if k[:2] != '__'})