Skip to content

Commit

Permalink
chore: fixing flake8 styles
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrrolizin committed Jun 29, 2022
1 parent 0f3c19c commit 4ede429
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions tests/rules/test_brew_install.py
Expand Up @@ -18,8 +18,6 @@ def brew_already_installed():
return '''Warning: git-2.3.5 already installed'''




def test_match(brew_no_available_formula, brew_already_installed,
brew_install_no_argument):
assert match(Command('brew install gitt',
Expand Down
3 changes: 1 addition & 2 deletions thefuck/rules/brew_install.py
Expand Up @@ -14,8 +14,7 @@ def match(command):


def get_new_command(command):
matcher = re.search('Warning: No available formula with the name "([^"]+)". Did you mean ([^, ?]+)',
command.output)
matcher = re.search('Warning: No available formula with the name "([^"]+)". Did you mean ([^, ?]+)', command.output)
not_exist_formula = matcher.group(1)
exist_formula = matcher.group(2)
return replace_argument(command.script, not_exist_formula, exist_formula)

0 comments on commit 4ede429

Please sign in to comment.