]> granicus.if.org Git - graphviz/commitdiff
shapes.py: remove variable shadowing
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 2 Sep 2021 03:13:24 +0000 (20:13 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 15:21:19 +0000 (08:21 -0700)
Squashes Pylint redefined-outer-name warnings.

tests/regression_tests/shapes/shapes.py

index a0e0b181fb63bd187efaecbdeafaca1ed48023b2..62c8ed81687b14903a0c545007fa19c8c92e7a11 100644 (file)
@@ -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("")