From 22aee94f7702a82e428e2915ba26cbcec209b391 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 22 Apr 2014 12:55:51 +0200 Subject: Use 'next(iter)' instead of 'iter.next()' since the former works with python 2 and 3 --- tests/test_debiandistro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_debiandistro.py b/tests/test_debiandistro.py index 99c7c91..a166aa8 100644 --- a/tests/test_debiandistro.py +++ b/tests/test_debiandistro.py @@ -80,7 +80,7 @@ class TestDebianDistro(unittest.TestCase): ''] def readline(self): - return self.iter.next() + return next(self.iter) with patch('sys.stdin', new_callable=AptPipelineMock): pkgs = DebianDistro.read_apt_pipeline() -- cgit v1.2.3