From f16333e78ba77ab29ab0b75e10891e6c65c6da7e Mon Sep 17 00:00:00 2001 From: nn <45516943+NNRepos@users.noreply.github.com> Date: Wed, 12 Oct 2022 00:34:37 +0300 Subject: [PATCH] remove unreachable code (#3328) fixes #3321 --- src/black/parsing.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/black/parsing.py b/src/black/parsing.py index f7d9fdc..762934b 100644 --- a/src/black/parsing.py +++ b/src/black/parsing.py @@ -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+ ;) -- 2.39.5