From: nn <45516943+NNRepos@users.noreply.github.com> Date: Tue, 11 Oct 2022 21:34:37 +0000 (+0300) Subject: remove unreachable code (#3328) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/f16333e78ba77ab29ab0b75e10891e6c65c6da7e?ds=sidebyside remove unreachable code (#3328) fixes #3321 --- 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+ ;)