summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-04-22 12:55:51 +0200
committerGuido Günther <agx@sigxcpu.org>2014-04-22 13:34:48 +0200
commit22aee94f7702a82e428e2915ba26cbcec209b391 (patch)
tree6368370ce2e488a68cbf245cea7d11dc4f3455d7
parent9afc2eabf69e1802650baa6341e5c39d74551823 (diff)
Use 'next(iter)' instead of 'iter.next()'
since the former works with python 2 and 3
-rw-r--r--tests/test_debiandistro.py2
1 files changed, 1 insertions, 1 deletions
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()