1
0
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:
Pablo Santiago Blum de Aguiar 2015-11-22 11:38:59 -02:00
parent 4a7b335d7c
commit ad3db4ac67

View File

@ -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)