dilshod / xlsx2csv

Convert xslx to csv, it is fast, and works for huge xlsx files
MIT License
1.66k stars 302 forks source link

Fix potential `SyntaxError` when >= Python 3.12 (regex) #281

Closed alexander-beedie closed 5 months ago

alexander-beedie commented 5 months ago

One of the regexes hadn't been set as a raw string; fixing that can avoid the following error on Python 3.12:

E       and not re.match(".*\[.*[dmhys].*\]", format_str)
E                        ^^^^^^^^^^^^^^^^^^^
E   SyntaxError: invalid escape sequence '\['
ericpalakovichcarr commented 2 months ago

@dilshod, thank you for all your work on this repo. Do you have any plans to create a new release with this change?

dilshod commented 2 months ago

@ericpalakovichcarr I just published 0.8.3 version.