mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-07 13:41:21 +00:00
Remove unused lines
This commit is contained in:
parent
1136ff9793
commit
7ca0919e70
@ -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: ')(.*)(?='.)"
|
INVALID_CHOICE = "(?<=Invalid choice: ')(.*)(?='.)"
|
||||||
OPTIONS = "t\\:\\n\\s\\s(.*)"
|
OPTIONS = "t\\:\\n\\s\\s(.*)"
|
||||||
@ -12,7 +12,5 @@ def match(command):
|
|||||||
|
|
||||||
|
|
||||||
def get_new_command(command):
|
def get_new_command(command):
|
||||||
mistake = re.search(INVALID_CHOICE, command.output).group(0)
|
|
||||||
options = re.findall(OPTIONS, command.output, flags=re.MULTILINE)
|
options = re.findall(OPTIONS, command.output, flags=re.MULTILINE)
|
||||||
return options
|
return options
|
||||||
#[replace_argument(command.script, mistake, o) for o in options]
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user