From 541f76c03a26cd54f908589c19e1a87a4d333aea Mon Sep 17 00:00:00 2001 From: Aidan Kane Date: Tue, 7 Oct 2014 11:32:33 +0100 Subject: [PATCH] working in python3.4 --- pipdeptree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipdeptree.py b/pipdeptree.py index f7eb9dc..42e75b5 100644 --- a/pipdeptree.py +++ b/pipdeptree.py @@ -199,7 +199,7 @@ def peek_into(iterator): a, b = tee(iterator) is_empty = False try: - a.next() + next(a) except StopIteration: is_empty = True return is_empty, b