-
Notifications
You must be signed in to change notification settings - Fork 138
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
SyntaxWarning: "is not" with a literal #2713
Comments
New in Py3.8https://docs.python.org/3.8/whatsnew/3.8.html#changes-in-python-behavior
Nice article on this here: https://adamj.eu/tech/2020/01/21/why-does-python-3-8-syntaxwarning-for-is-literal/
|
When changing our second instance in a single line as recommended:
We run-into:
Ignoring second instance for now for Draft PR preparation. Context is:
|
Double checking on the double "is not" use, and sure enough it seems to be a false alarm:
results in:
Where as with:
gives the following:
Moving to pull request. The remaining warnings (via Python -Wd) are separately issued. |
Modify conditionals to address Py3.8's added warnings.
…h-a-literal SyntaxWarning: "is not" with a literal #2713
Closing as: |
With our recent Python version updates we are now seeing the following warnings when running our tests within an rpm build environment:
The text was updated successfully, but these errors were encountered: