remove unreachable code (#3328)

fixes #3321
This commit is contained in:
nn 2022-10-12 00:34:37 +03:00 committed by GitHub
parent d923945513
commit f16333e78b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,8 +165,6 @@ def parse_single_version(
# comments separately.
return ast3.parse(src, filename, feature_version=version[1])
raise AssertionError("INTERNAL ERROR: Tried parsing unsupported Python version!")
def parse_ast(src: str) -> Union[ast.AST, ast3.AST]:
# TODO: support Python 4+ ;)