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

This commit is contained in:
Wang Ran (汪然)
2024-11-26 17:00:38 +08:00
committed by GitHub
parent 88c7763f53
commit 867e092f82

View File

@@ -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