Skip to content

Conversation

@firegurafiku
Copy link

Dear authors,
I have made a couple of small, convenience-only fixes in my working copy (see the commit messages for details). They're extremely minor, but I believe they are not useless. Feel free to merge if you like them.

The code triggers the following warning in Python 3.12:

    SyntaxWarning: invalid escape sequence '\('

It appears that this warning was introduced in Python 3.12 [1], with
a note stating that "in a future Python version, SyntaxError will
eventually be raised".

[1]: https://docs.python.org/dev/whatsnew/3.12.html#other-language-changes
Since modern Pythons (version 3.5 and later) no longer generate *.pyc files
outside of a __pycache__ directory [1] and no longer generate *.pyo files
at all [2], this single line should be sufficient.

[1]: https://peps.python.org/pep-3147/
[2]: https://peps.python.org/pep-0488/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant