From be364310a9b01439390bbf9dfa1307e5d6da80fc Mon Sep 17 00:00:00 2001 From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Thu, 23 Dec 2021 13:45:30 -0500 Subject: [PATCH] Committing bad ideas, take two --- src/black/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/black/__init__.py b/src/black/__init__.py index 9bc8fc15c49..c6ffea82ce3 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -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)