forked from VimPlug/jedi
fixed file in python 2.7 with test, fixes #309
This commit is contained in:
@@ -26,6 +26,13 @@ def range(start, stop=None, step=1):
|
|||||||
return [0]
|
return [0]
|
||||||
|
|
||||||
|
|
||||||
|
class file():
|
||||||
|
def __iter__(self):
|
||||||
|
yield ''
|
||||||
|
def next(self):
|
||||||
|
return ''
|
||||||
|
|
||||||
|
|
||||||
class xrange():
|
class xrange():
|
||||||
# Attention: this function doesn't exist in Py3k (there it is range).
|
# Attention: this function doesn't exist in Py3k (there it is range).
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
|
|||||||
@@ -13,6 +13,9 @@ sorted(arr)[0]
|
|||||||
#? str()
|
#? str()
|
||||||
next(reversed(arr))
|
next(reversed(arr))
|
||||||
|
|
||||||
|
#? str()
|
||||||
|
next(open(''))
|
||||||
|
|
||||||
# -----------------
|
# -----------------
|
||||||
# re
|
# re
|
||||||
# -----------------
|
# -----------------
|
||||||
|
|||||||
Reference in New Issue
Block a user