From 9d6a57fb731d72261e4e0a334595cc5745765e2a Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Thu, 7 Sep 2017 17:52:53 +0200 Subject: [PATCH] OCD cosmetics. --- agtree2dot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/agtree2dot.py b/agtree2dot.py index 24d5f85..2dcc1d7 100755 --- a/agtree2dot.py +++ b/agtree2dot.py @@ -92,11 +92,9 @@ def fill_graph_lists(u, node_labels, node_list, link_list): add_link(node_list, link_list, u, 0, u.variable, 0) if hasattr(u, 'next_functions'): - i = 0 - for v, j in u.next_functions: + for i, (v, j) in enumerate(u.next_functions): fill_graph_lists(v, node_labels, node_list, link_list) add_link(node_list, link_list, u, i, v, j) - i += 1 ###################################################################### -- 2.39.5