From: Francois Fleuret Date: Thu, 7 Sep 2017 15:52:53 +0000 (+0200) Subject: OCD cosmetics. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=9d6a57fb731d72261e4e0a334595cc5745765e2a;p=agtree2dot.git OCD cosmetics. --- 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 ######################################################################