python 2.5 compatibility

This commit is contained in:
David Halter
2012-09-06 02:35:38 +02:00
parent 8ebb1fbbfe
commit 0008e2c703
3 changed files with 16 additions and 6 deletions

View File

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