working in python3.4

This commit is contained in:
Aidan Kane 2014-10-07 11:32:33 +01:00
parent 4a5430b712
commit 541f76c03a
1 changed files with 1 additions and 1 deletions

View File

@ -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