diff --git a/tests/rules/test_grep_recursive.py b/tests/rules/test_grep_recursive.py index 6c459496..4e82688f 100644 --- a/tests/rules/test_grep_recursive.py +++ b/tests/rules/test_grep_recursive.py @@ -8,5 +8,4 @@ def test_match(): def test_get_new_command(): - assert get_new_command( - Command('grep blah .')) == 'grep -r blah .' + assert get_new_command(Command('grep blah .')) == 'grep -r blah .' diff --git a/thefuck/rules/fix_file.py b/thefuck/rules/fix_file.py index 13a46b3b..753426e2 100644 --- a/thefuck/rules/fix_file.py +++ b/thefuck/rules/fix_file.py @@ -38,7 +38,7 @@ patterns = ( def _make_pattern(pattern): pattern = pattern.replace('{file}', '(?P[^:\n]+)') \ .replace('{line}', '(?P[0-9]+)') \ - .replace('{col}', '(?P[0-9]+)') + .replace('{col}', '(?P[0-9]+)') return re.compile(pattern, re.MULTILINE) patterns = [_make_pattern(p).search for p in patterns]