Unverified Commit 867e092f authored by Wang Ran (汪然)'s avatar Wang Ran (汪然) Committed by GitHub
Browse files

using `is not` not `!=` to test `None` (#2196)

parent 88c7763f
......@@ -278,6 +278,6 @@ class TracingScope:
def add_child_state(self, state: TracerProgramState):
cur_scope = self
while cur_scope != None:
while cur_scope is not None:
cur_scope.tracer_state.child_states.append(state)
cur_scope = cur_scope.last_scope
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment