Merge branch 'master' of github.com:nvbn/thefuck

This commit is contained in:
nvbn
2015-04-23 21:48:05 +02:00
3 changed files with 34 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# -*- encoding: utf-8 -*-
import re
from thefuck.utils import sudo_support
@sudo_support
def match(command, settings):
return ('command not found' in command.stderr.lower()
and u' ' in command.script)
@sudo_support
def get_new_command(command, settings):
return re.sub(u' ', ' ', command.script)