mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
* Updated re library + test * Copied over generate_sre_constants from cpython/Tools * Customized `generate_sre_constants.py` + ran to update `constants.rs` * Clarified `dump_enum` docstring in `generate_sre_constants.py`
8 lines
232 B
Python
Vendored
8 lines
232 B
Python
Vendored
import warnings
|
|
warnings.warn(f"module {__name__!r} is deprecated",
|
|
DeprecationWarning,
|
|
stacklevel=2)
|
|
|
|
from re import _constants as _
|
|
globals().update({k: v for k, v in vars(_).items() if k[:2] != '__'})
|