Skip to content
Myr

Fix use of 'is' operator for comparison

Before adoption: this commit came in with the history the project adopted, so no landing records it.

The 'is' operator is not meant to be used for comparisons. It currently working is an implementation detail of CPython. CPython 3.8 has added a SyntaxWarning for this.

authored by Raul Tambre · committed by Adrian · parent e214048 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:ext/inlinegettext.py+1 added-1 removed
30 unmodified lines
31 def filter_stream(self, stream):32 paren_stack = 03334 for token in stream:35 if token.type is not 'data':35 if token.type != 'data':36 yield token37 continue3839 pos = 0
39 unmodified lines