diff --git a/thefuck/rules/brew_install.py b/thefuck/rules/brew_install.py index 0f33950..39deb23 100644 --- a/thefuck/rules/brew_install.py +++ b/thefuck/rules/brew_install.py @@ -3,12 +3,11 @@ import os import re from subprocess import check_output -import thefuck.logs - # Formulars are base on each local system's status brew_formulas = [] try: - brew_path_prefix = check_output(['brew', '--prefix']).strip() + brew_path_prefix = check_output(['brew', '--prefix'], + universal_newlines=True).strip() brew_formula_path = brew_path_prefix + '/Library/Formula' for file_name in os.listdir(brew_formula_path):