From ad3db4ac67f75694fec8ccb6dd9f293aaf2f72d7 Mon Sep 17 00:00:00 2001 From: Pablo Santiago Blum de Aguiar Date: Sun, 22 Nov 2015 11:38:59 -0200 Subject: [PATCH] #N/A Fix F812 list comprehension redefines `cmd` --- thefuck/rules/tmux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/rules/tmux.py b/thefuck/rules/tmux.py index 0aeaee28..73a90756 100644 --- a/thefuck/rules/tmux.py +++ b/thefuck/rules/tmux.py @@ -13,6 +13,6 @@ def get_new_command(command): command.stderr) 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)