1
0
forked from VimPlug/jedi

fixed file in python 2.7 with test, fixes #309

This commit is contained in:
David Halter
2013-09-06 16:00:12 +04:30
parent 9bbd73bf86
commit 39a5c8501b
2 changed files with 10 additions and 0 deletions

View File

@@ -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):

View File

@@ -13,6 +13,9 @@ sorted(arr)[0]
#? str()
next(reversed(arr))
#? str()
next(open(''))
# -----------------
# re
# -----------------