mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-26 01:17:14 +08:00
python 2.5 compatibility
This commit is contained in:
@@ -2,9 +2,12 @@
|
||||
This is a compatibility module, to make it possible to use jedi also with older
|
||||
python versions.
|
||||
"""
|
||||
import sys
|
||||
|
||||
def is_py3k():
|
||||
return sys.hexversion >= 0x03000000
|
||||
import sys
|
||||
|
||||
is_py25 = sys.hexversion < 0x02060000
|
||||
|
||||
# next was defined in python 2.6, in python 3 obj.next won't be possible
|
||||
# anymore
|
||||
|
||||
Reference in New Issue
Block a user