X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/47480ca33143b250cb33ba501f201838269173ce..43b53a034c9e3ada9295bf7f93be473b66b74f75:/.vim/bundle/black/tests/data/cases/remove_except_parens.py diff --git a/.vim/bundle/black/tests/data/cases/remove_except_parens.py b/.vim/bundle/black/tests/data/cases/remove_except_parens.py deleted file mode 100644 index 322c5b7a..00000000 --- a/.vim/bundle/black/tests/data/cases/remove_except_parens.py +++ /dev/null @@ -1,79 +0,0 @@ -# These brackets are redundant, therefore remove. -try: - a.something -except (AttributeError) as err: - raise err - -# This is tuple of exceptions. -# Although this could be replaced with just the exception, -# we do not remove brackets to preserve AST. -try: - a.something -except (AttributeError,) as err: - raise err - -# This is a tuple of exceptions. Do not remove brackets. -try: - a.something -except (AttributeError, ValueError) as err: - raise err - -# Test long variants. -try: - a.something -except (some.really.really.really.looooooooooooooooooooooooooooooooong.module.over89.chars.Error) as err: - raise err - -try: - a.something -except (some.really.really.really.looooooooooooooooooooooooooooooooong.module.over89.chars.Error,) as err: - raise err - -try: - a.something -except (some.really.really.really.looooooooooooooooooooooooooooooooong.module.over89.chars.Error, some.really.really.really.looooooooooooooooooooooooooooooooong.module.over89.chars.Error) as err: - raise err - -# output -# These brackets are redundant, therefore remove. -try: - a.something -except AttributeError as err: - raise err - -# This is tuple of exceptions. -# Although this could be replaced with just the exception, -# we do not remove brackets to preserve AST. -try: - a.something -except (AttributeError,) as err: - raise err - -# This is a tuple of exceptions. Do not remove brackets. -try: - a.something -except (AttributeError, ValueError) as err: - raise err - -# Test long variants. -try: - a.something -except ( - some.really.really.really.looooooooooooooooooooooooooooooooong.module.over89.chars.Error -) as err: - raise err - -try: - a.something -except ( - some.really.really.really.looooooooooooooooooooooooooooooooong.module.over89.chars.Error, -) as err: - raise err - -try: - a.something -except ( - some.really.really.really.looooooooooooooooooooooooooooooooong.module.over89.chars.Error, - some.really.really.really.looooooooooooooooooooooooooooooooong.module.over89.chars.Error, -) as err: - raise err