working in python3.4
This commit is contained in:
parent
4a5430b712
commit
541f76c03a
|
@ -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