X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/99c97c3d7fa8532faf11f818bf1fcf08e991e62c..fbf59b60d750ace9792a78736f19a4e81a156333:/black.py?ds=sidebyside diff --git a/black.py b/black.py index d060820..9ac16c0 100644 --- a/black.py +++ b/black.py @@ -2435,7 +2435,7 @@ def standalone_comment_split(line: Line, py36: bool = False) -> Iterator[Line]: nonlocal current_line try: current_line.append_safe(leaf, preformatted=True) - except ValueError as ve: + except ValueError: yield current_line current_line = Line(depth=line.depth, inside_brackets=line.inside_brackets) @@ -3662,6 +3662,10 @@ def patch_click() -> None: module._verify_python3_env = lambda: None -if __name__ == "__main__": +def patched_main() -> None: patch_click() main() + + +if __name__ == "__main__": + patched_main()