fixed file in python 2.7 with test, fixes #309
This commit is contained in:
1 parent
9bbd73bf86
commit
39a5c8501b
2 files changed
+10
No files matched your search
@@ -26,6 +26,13 @@ def range(start, stop=None, step=1):
|
||||
return [0]
|
||||
|
||||
|
||||
class file():
|
||||
def __iter__(self):
|
||||
yield ''
|
||||
def next(self):
|
||||
return ''
|
||||
|
||||
|
||||
class xrange():
|
||||
# Attention: this function doesn't exist in Py3k (there it is range).
|
||||
def __iter__(self):
|
||||
|
||||
Reference in new issue
Block a user