Skip to content

Commit

Permalink
nvbn#678: Import pkg_resources only when it needed
Browse files Browse the repository at this point in the history
  • Loading branch information
nvbn committed Aug 21, 2017
1 parent 5876db5 commit 26a93f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion thefuck/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import pickle
import pkg_resources
import re
import shelve
import six
Expand Down Expand Up @@ -255,6 +254,8 @@ def _cache(fn, *args, **kwargs):


def get_installation_info():
import pkg_resources

return pkg_resources.require('thefuck')[0]


Expand Down

0 comments on commit 26a93f9

Please sign in to comment.