isodatetime
isodatetime copied to clipboard
sre_constants is deprecated
The sre_constants module is now deprecated at Python 3.11 for removal in Python 3.13.
https://docs.python.org/3/whatsnew/3.11.html#modules
https://github.com/metomi/isodatetime/blob/658b31e6905896e5df183da561d8d21005960771/metomi/isodatetime/parsers.py#L344-L347
Probably can just replace with Exception. The line in question is showing as not covered by tests so could do with adding a few while we're at it
Just to note two things
-
sre_constantsis still in python 3.13, which does go against their usual approach, but anyway, its still there - You maybe should pin the max python version in the conda feedstock to be
<3.14as a safety feature.
- (Still open: https://github.com/python/cpython/issues/105456)