3.8 "for" block ...

pysource: Tag older semantics for blocks with "expr" and "for_block"
This commit is contained in:
rocky
2019-04-10 06:00:16 -04:00
parent 8b65cc7275
commit 820283827f
4 changed files with 43 additions and 6 deletions

View File

@@ -747,6 +747,12 @@ def get_python_parser(
p = parse37.Python37Parser(debug_parser)
else:
p = parse37.Python37ParserSingle(debug_parser)
elif version == 3.8:
import uncompyle6.parsers.parse38 as parse38
if compile_mode == 'exec':
p = parse38.Python38Parser(debug_parser)
else:
p = parse38.Python38ParserSingle(debug_parser)
else:
if compile_mode == 'exec':
p = parse3.Python3Parser(debug_parser)