mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-11-04 09:02:08 +00:00 
			
		
		
		
	#N/A Fix F812 list comprehension redefines cmd
				
					
				
			This commit is contained in:
		@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user