From ac4945011bfb44f0d221987a22e8fa4b391e4da2 Mon Sep 17 00:00:00 2001 From: Simon Marsh Date: Sun, 11 Aug 2019 09:52:13 +0100 Subject: [PATCH] dict.iteritems -> dict.items python3 fix --- lg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lg.py b/lg.py index f9c202d..740ee8b 100644 --- a/lg.py +++ b/lg.py @@ -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"))