mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-19 04:21:14 +00:00
#N/A Fix F812 list comprehension redefines cmd
This commit is contained in:
parent
4a7b335d7c
commit
ad3db4ac67
@ -13,6 +13,6 @@ def get_new_command(command):
|
|||||||
command.stderr)
|
command.stderr)
|
||||||
|
|
||||||
old_cmd = cmd.group(1)
|
old_cmd = cmd.group(1)
|
||||||
suggestions = [cmd.strip() for cmd in cmd.group(2).split(',')]
|
suggestions = [c.strip() for c in cmd.group(2).split(',')]
|
||||||
|
|
||||||
return replace_command(command, old_cmd, suggestions)
|
return replace_command(command, old_cmd, suggestions)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user