Limited support for Python 2.3

This commit is contained in:
rocky
2016-06-03 10:09:39 -04:00
parent eefbc40eef
commit ebcb1d08f4
20 changed files with 1301 additions and 76 deletions

View File

@@ -463,7 +463,13 @@ def get_python_parser(version, debug_parser, compile_mode='exec'):
# FIXME: there has to be a better way...
if version < 3.0:
if version == 2.6:
if version == 2.3:
import uncompyle6.parsers.parse23 as parse23
if compile_mode == 'exec':
p = parse23.Python23Parser(debug_parser)
else:
p = parse23.Python23ParserSingle(debug_parser)
elif version == 2.6:
import uncompyle6.parsers.parse26 as parse26
if compile_mode == 'exec':
p = parse26.Python26Parser(debug_parser)