Environment Details
- RDT version: 1.18.2
- Python version: 3.12+
- Operating System: Any
Description
The sre_parse module is deprecated and will be removed from Python in future versions (see Python Deprecations). Our libraries are currently raising DeprecationWarning due to usage of this module.
In Python 3.13, sre_parse.py has been updated to emit a deprecation warning and simply re-export everything from re._parser:
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] != '__'})
This indicates that sre_parse is now just a compatibility shim for re._parser.
Proposed Solution
Update rdt/transformers/utils.py to import directly from re._parser instead of sre_parse:
Replace:
With:
Then update all references to sre_parse throughout the codebase to use _parser instead.
Environment Details
Description
The
sre_parsemodule is deprecated and will be removed from Python in future versions (see Python Deprecations). Our libraries are currently raisingDeprecationWarningdue to usage of this module.In Python 3.13,
sre_parse.pyhas been updated to emit a deprecation warning and simply re-export everything fromre._parser:This indicates that
sre_parseis now just a compatibility shim forre._parser.Proposed Solution
Update
rdt/transformers/utils.pyto import directly fromre._parserinstead ofsre_parse:Replace:
With:
Then update all references to
sre_parsethroughout the codebase to use_parserinstead.