Merge pull request #22 from aidos/master
a.next() doesn't work in python3.4
This commit is contained in:
commit
75249cdb52
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue