Skip to content

Commit

Permalink
Remove spurious prints
Browse files Browse the repository at this point in the history
  • Loading branch information
ambv committed May 9, 2019
1 parent 6bb90f2 commit 2227e6b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions black.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 2227e6b

Please sign in to comment.