mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
minial Python 3.8 fix
This commit is contained in:
parent
298f138d5e
commit
625206fe43
1 changed files with 4 additions and 1 deletions
|
@ -711,7 +711,10 @@ class BaseParser(object):
|
|||
|
||||
def p_file_input(self, p):
|
||||
"""file_input : file_stmts"""
|
||||
p[0] = ast.Module(body=p[1])
|
||||
if PYTHON_VERSION_INFO < (3, 8, 0):
|
||||
p[0] = ast.Module(body=p[1])
|
||||
else:
|
||||
p[0] = ast.Module(body=p[1], type_ignores=[])
|
||||
|
||||
def p_file_stmts_nl(self, p):
|
||||
"""file_stmts : newline_or_stmt"""
|
||||
|
|
Loading…
Add table
Reference in a new issue