Merge pull request #22 from aidos/master

a.next() doesn't work in python3.4
This commit is contained in:
Vineet Naik 2014-10-07 23:15:34 +05:30
commit 75249cdb52
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