Files
RustPython/Lib/sre_constants.py
Terry Tianlin Luan 8977c39b60 Updated the re library + test (#6648)
* 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`
2026-01-05 13:55:07 +09:00

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] != '__'})