1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-06 02:41:10 +01:00

Merge pull request #192 from scorphus/fix-brew-install-py3

Fix brew_install rule on Python 3
This commit is contained in:
Vladimir Iakovlev 2015-05-13 22:54:28 +02:00
commit 371a4b0ad3

View File

@ -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):