From 1cf389caee9898ba5d7b39040e2e69f962132537 Mon Sep 17 00:00:00 2001 From: Christopher Chapman Date: Fri, 2 Oct 2020 11:41:33 -0700 Subject: [PATCH] [checkoutlinesufo] fix nested loop variable This is a fix for the following issue identified by LGTM: Nested for statement uses loop variable 'point' of enclosing for statement. --- python/afdko/checkoutlinesufo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/afdko/checkoutlinesufo.py b/python/afdko/checkoutlinesufo.py index b2a929d9b..7244c2473 100644 --- a/python/afdko/checkoutlinesufo.py +++ b/python/afdko/checkoutlinesufo.py @@ -927,10 +927,10 @@ def restore_contour_order(fixed_glyph, original_contours): for j in old_index_list: ci2, old_contour = old_list[j] matched = False - for point in old_contour: - if point.segmentType is None: + for old_point in old_contour: + if old_point.segmentType is None: continue - if (max_p.x == point.x) and (max_p.y == point.y): + if (max_p.x == old_point.x) and (max_p.y == old_point.y): new_list[i] = None order_list.append([ci2, ci]) matched = True