mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-13 22:30:49 +01: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
|
import re
|
||||||
from subprocess import check_output
|
from subprocess import check_output
|
||||||
|
|
||||||
import thefuck.logs
|
|
||||||
|
|
||||||
# Formulars are base on each local system's status
|
# Formulars are base on each local system's status
|
||||||
brew_formulas = []
|
brew_formulas = []
|
||||||
try:
|
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'
|
brew_formula_path = brew_path_prefix + '/Library/Formula'
|
||||||
|
|
||||||
for file_name in os.listdir(brew_formula_path):
|
for file_name in os.listdir(brew_formula_path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user