A couple of extremely minor code improvements#45
Open
firegurafiku wants to merge 2 commits intoltkong218:mainfrom
Open
A couple of extremely minor code improvements#45firegurafiku wants to merge 2 commits intoltkong218:mainfrom
firegurafiku wants to merge 2 commits intoltkong218:mainfrom
Conversation
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/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.