Closed sdb9696 closed 1 month ago
Thanks for catching this. Can you add a "Fixed" entry to CHANGELOG.md?
I will merge and push a release this fix shortly.
Thanks for catching this. Can you add a "Fixed" entry to CHANGELOG.md?
I will merge and push a release this fix shortly.
That's done
Hi, we've been updating our CI to work with python3.13 in preparation for the upcoming release in October. While doing so we received DeprecationWarnings from
checker.py
passingcount
tore.sub
as a positional argument. It seems in python3.13 this is deprecated due to confusion between flags and count.This PR updates
checker.py
to passre.MULTILINE
tore.sub
with a keywordflags
argument. I think the original code intended for this to be a flag rather than a count. When I tested this withre.MULTILINE
passed as the 4th argument it interpreted it as an integer of 8 and only replaces 8 occurrences ofBLANKLINE_MAKER
.Running the test suite against
main
on python 3.13:Running the test suite against this PR on python 3.13: