Skip to content

Commit

Permalink
Reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
merrickliu888 committed Nov 15, 2023
1 parent f8f4cc9 commit 6ef16cd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python_ta/debug/accumulation_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ def _record_iteration(self, frame: types.FrameType) -> None:
for accumulator in self.loop_accumulators:
if accumulator in frame.f_locals:
self.loop_accumulators[accumulator].append(copy.copy(frame.f_locals[accumulator]))
elif (accumulator in frame.f_code.co_varnames) or (
accumulator in frame.f_code.co_names
):
elif accumulator in frame.f_code.co_varnames or accumulator in frame.f_code.co_names:
self.loop_accumulators[accumulator].append(NO_VALUE)
else:
raise NameError
Expand Down

0 comments on commit 6ef16cd

Please sign in to comment.