From f39377fd81a32abe13e7ad47ab3acc6531f456e1 Mon Sep 17 00:00:00 2001 From: NNRepos Date: Wed, 12 Oct 2022 00:09:35 +0300 Subject: [PATCH] remove unreachable code --- src/black/parsing.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/black/parsing.py b/src/black/parsing.py index f7d9fdc2f13..762934b8869 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+ ;)