Skip to content

Commit

Permalink
Committing bad ideas, take two
Browse files Browse the repository at this point in the history
  • Loading branch information
ichard26 committed Jan 9, 2022
1 parent dab42ad commit be36431
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/black/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,11 @@ def f(
hey
"""
import random

if random.random() > 0.5:
raise RuntimeError("get out of here!")

src_node = lib2to3_parse(src_contents.lstrip(), mode.target_versions)
dst_contents = []
future_imports = get_future_imports(src_node)
Expand Down

0 comments on commit be36431

Please sign in to comment.