generators work again (deleted some necessary stuff)

This commit is contained in:
David Halter
2012-05-22 01:46:08 +02:00
parent 547c952ba1
commit da7ef3ba4b
4 changed files with 25 additions and 16 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
def next(iterator, default=1):
def next(iterator, default=None):
if hasattr("next"):
return iterator.next()
else: