From e67a52653003f22812e3e4fe09101252094374dc Mon Sep 17 00:00:00 2001 From: Benjamin Hedrich Date: Thu, 26 Jun 2014 13:26:44 +0200 Subject: [PATCH] More Python > 3.x support Replace {}.iteritems with .items. This should fix issue #18 --- pipdeptree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipdeptree.py b/pipdeptree.py index 40c60fb..ddbffbd 100644 --- a/pipdeptree.py +++ b/pipdeptree.py @@ -102,10 +102,10 @@ def confusing_deps(req_map): """ deps = defaultdict(list) - for p, rs in req_map.iteritems(): + for p, rs in req_map.items(): for r in rs: deps[r.key].append((p, r)) - return [ps for r, ps in deps.iteritems() + return [ps for r, ps in deps.items() if len(ps) > 1 and has_multi_versions(d for p, d in ps)]