mirror of https://github.com/python/cpython
2e4cc7e0d8
Remove the only test in the syntax module. It ends up that the transformer must handle this error case. In the transformer, check for a list compression in com_assign_list() by looking for a list_for node where a comma is expected. In pycodegen.compile() re-raise the SyntaxError rather than catching it and exiting |
||
---|---|---|
.. | ||
__init__.py | ||
ast.py | ||
consts.py | ||
future.py | ||
misc.py | ||
pyassem.py | ||
pycodegen.py | ||
symbols.py | ||
syntax.py | ||
transformer.py | ||
visitor.py |