Skip to content

Commit

Permalink
nvbn#678: Speedup fuck by hardcoding entry points
Browse files Browse the repository at this point in the history
  • Loading branch information
nvbn committed Aug 21, 2017
1 parent 26a93f9 commit 44de0bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions thefuck/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ def _safe(fn, fallback):
return fallback

tf_alias = get_alias()
tf_entry_points = get_installation_info().get_entry_map()\
.get('console_scripts', {})\
.keys()
tf_entry_points = ['thefuck', 'fuck']

bins = [exe.name.decode('utf8') if six.PY2 else exe.name
for path in os.environ.get('PATH', '').split(':')
Expand Down

0 comments on commit 44de0bc

Please sign in to comment.