Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix comparison for Python3.8+ #16

Closed
wants to merge 2 commits into from

Conversation

chris-fo
Copy link

Hi Tim,

super small QoL change that'll remove some warnings popping up in newer Python versions.
Formatter.py uses is for a comparison with a literal. In Python 3.8 and newer this causes a SyntaxWarning.
Change comparison with a literal to use == instad of is.

Formatter.py uses `is` for a comparison with a literal.
In Python 3.8 and newer this causes a SyntaxWarning.

Change comparison with a literal to use `==` instad of `is`.
@chris-fo chris-fo marked this pull request as ready for review October 28, 2022 11:25
@chris-fo chris-fo closed this Dec 13, 2022
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.

None yet

1 participant