metomi / isodatetime

:date: :watch: Python ISO 8601 date time parser and data model/manipulation utilities
GNU Lesser General Public License v3.0
37 stars 20 forks source link

sre_constants is deprecated #229

Open oliver-sanders opened 1 year ago

oliver-sanders commented 1 year ago

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

MetRonnie commented 1 year ago

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