From 7ca0919e70fe23a551b2388c050aa34925c09d0c Mon Sep 17 00:00:00 2001 From: Ronan Doolan Date: Sat, 9 May 2020 20:37:38 +0100 Subject: [PATCH] Remove unused lines --- thefuck/rules/gcloud_cli.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/thefuck/rules/gcloud_cli.py b/thefuck/rules/gcloud_cli.py index 10fdf64c..e2d2bb5e 100644 --- a/thefuck/rules/gcloud_cli.py +++ b/thefuck/rules/gcloud_cli.py @@ -1,6 +1,6 @@ -import re +import re -from thefuck.utils import for_app, replace_argument +from thefuck.utils import for_app INVALID_CHOICE = "(?<=Invalid choice: ')(.*)(?='.)" OPTIONS = "t\\:\\n\\s\\s(.*)" @@ -12,7 +12,5 @@ def match(command): def get_new_command(command): - mistake = re.search(INVALID_CHOICE, command.output).group(0) options = re.findall(OPTIONS, command.output, flags=re.MULTILINE) return options -#[replace_argument(command.script, mistake, o) for o in options]