mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-19 04:21:14 +00:00
Merge pull request #192 from scorphus/fix-brew-install-py3
Fix brew_install rule on Python 3
This commit is contained in:
commit
371a4b0ad3
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user