crdoconnor / xeger

Library to generate random strings from regular expressions.
Other
121 stars 21 forks source link

fix: support version greater than 3.11 #23

Closed magiskboy closed 1 year ago

magiskboy commented 1 year ago

Support python later 3.11

https://github.com/python/cpython/blob/v3.11.0/Lib/re/_parser.py

magiskboy commented 1 year ago

You should consider to remove sre_parse = re.sre_parse because sre_parser is an attribute of re in python 3.11 alpha and beta version.

In python 3.10.x, sre_parser was still separated module then in 3.11.x stable, it is changed to _parser module in re package