dict.iteritems -> dict.items python3 fix

This commit is contained in:
Simon Marsh 2019-08-11 09:52:13 +01:00
parent fdec82cd90
commit ac4945011b
Signed by: burble
GPG Key ID: 7B9FE8780CFB6593

2
lg.py
View File

@ -579,7 +579,7 @@ def show_bgpmap():
node.set_shape("box")
for _as in prepend_as:
for n in set([ n for h, d in prepend_as[_as].iteritems() for p, n in d.iteritems() ]):
for n in set([ n for h, d in prepend_as[_as].items() for p, n in d.items() ]):
graph.add_edge(pydot.Edge(*(_as, _as), label=" %dx" % n, color="grey", fontcolor="grey"))