From: Matthew Fernandez Date: Thu, 2 Sep 2021 03:13:24 +0000 (-0700) Subject: shapes.py: remove variable shadowing X-Git-Tag: 2.49.1~44^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3085724398762e46eace80ac4544d5ca7878483;p=graphviz shapes.py: remove variable shadowing Squashes Pylint redefined-outer-name warnings. --- diff --git a/tests/regression_tests/shapes/shapes.py b/tests/regression_tests/shapes/shapes.py index a0e0b181f..62c8ed816 100644 --- a/tests/regression_tests/shapes/shapes.py +++ b/tests/regression_tests/shapes/shapes.py @@ -108,10 +108,10 @@ def generate_shape_graph(shape, output_type): file.write(line) failures = 0 -for shape in shapes: - for output_type in output_types: - generate_shape_graph(shape, output_type) - if not compare_graphs(shape, output_type): +for s in shapes: + for o in output_types: + generate_shape_graph(s, o) + if not compare_graphs(s, o): failures += 1 print("")