mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
compatibility file mainly for python 2.5
This commit is contained in:
7
_compatibility.py
Normal file
7
_compatibility.py
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
# python2.5 compatibility
|
||||
try:
|
||||
next = next
|
||||
except NameError:
|
||||
def next(obj):
|
||||
return obj.next()
|
||||
Reference in New Issue
Block a user