diff --git a/thefuck/rules/brew_unknown_command.py b/thefuck/rules/brew_unknown_command.py index 6664d8e8..26c0924f 100644 --- a/thefuck/rules/brew_unknown_command.py +++ b/thefuck/rules/brew_unknown_command.py @@ -12,7 +12,8 @@ TAP_CMD_PATH = '/%s/%s/cmd' def _get_brew_path_prefix(): """To get brew path""" try: - return subprocess.check_output(['brew', '--prefix']).strip() + return subprocess.check_output(['brew', '--prefix'], + universal_newlines=True).strip() except: return None