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 incorrect string comparisons using "is" #1096

Merged
merged 1 commit into from
Aug 17, 2020

Conversation

wavexx
Copy link
Contributor

@wavexx wavexx commented Aug 17, 2020

Python 3.8 complains with a SyntaxWarning about these string comparisons using "is".
Switch them to "!=" instead.

@kliment
Copy link
Owner

kliment commented Aug 17, 2020

Weird that the CI didn't catch this but maybe the warning doesn't show up when building a wheel. Either way, thank you, this is great and I'll merge it. Can you check if there are any other instances of the same thing?

@kliment kliment merged commit 392ed97 into kliment:master Aug 17, 2020
@wavexx
Copy link
Contributor Author

wavexx commented Aug 17, 2020

I caught these running interactively and searching for similarly trivial instances.
I'll keep an eye on it ;)

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.

2 participants