#1344 Was closed, but libcst is still raising a ParserSyntaxError when using except without parentheses.
Example:
import ast, libcst
block = """try:
pass
except A, B, C:
pass"""
ast.parse(block) # Module(...)
libcst.parse_module(block) # Error!
This raises
libcst._exceptions.ParserSyntaxError: Syntax Error @ 4:7.
parser error: error at 3:10: expected one of !=, %, &, (, *, **, +, -, ., /, //, :, <, <<, <=, ==, >, >=, >>, @, [, ^, and, as, if, in, is, not, or, |
pass
^
#1344 Was closed, but libcst is still raising a
ParserSyntaxErrorwhen usingexceptwithout parentheses.Example:
This raises