You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/emily/Code/loki/scripts/loki_transform.py:166: SyntaxWarning: "is" with a literal. Did you mean "=="?
directive = None if directive is 'none' else directive.lower()
/home/emily/Code/loki/scripts/loki_transform.py:450: SyntaxWarning: "is" with a literal. Did you mean "=="?
directive = None if directive is 'none' else directive.lower()
As described here equal literals are not guaranteed to be the same object so this if evaluation may occasionally give wrong results on some systems
The text was updated successfully, but these errors were encountered:
I have not tested but as per Python's changelog this warning should appear in all active Python versions (3.8 onwards, 3.7 recently reached end of life)
Python 3.10 raises the following warnings:
As described here equal literals are not guaranteed to be the same object so this
if
evaluation may occasionally give wrong results on some systemsThe text was updated successfully, but these errors were encountered: