Remove spurious prints

This commit is contained in:
Łukasz Langa 2019-05-09 04:49:48 +02:00
parent 6bb90f22ed
commit 2227e6b1cd
No known key found for this signature in database
GPG Key ID: B26995E310250568

View File

@ -3384,12 +3384,10 @@ def __str__(self) -> str:
def parse_ast(src: str) -> Union[ast3.AST, ast27.AST]:
for feature_version in (7, 6):
try:
print(f"-- 3.{feature_version}")
return ast3.parse(src, feature_version=feature_version)
except SyntaxError:
continue
print(f"-- 2.7")
return ast27.parse(src)