dilshod / xlsx2csv

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

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

Closed alexander-beedie closed 7 months ago

alexander-beedie commented 7 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 4 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 4 months ago

@ericpalakovichcarr I just published 0.8.3 version.