Skip to content

Commit

Permalink
Replaced use of pip internal function.
Browse files Browse the repository at this point in the history
As discussed in this thread: pypa/pip#5243
use of the functions inside pip._internal is strongly discouraged. As
such I have replaced this functions usage with the pip maintainers
recommended solution.
  • Loading branch information
tannart committed Apr 25, 2018
1 parent 0c9c780 commit 62e07ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion safety/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
from pip import get_installed_distributions
except ImportError:
# pip 10
from pip._internal.utils.misc import get_installed_distributions
import pkg_resources

def get_installed_distributions():
return [d for d in pkg_resources.working_set]


@click.group()
Expand Down

0 comments on commit 62e07ee

Please sign in to comment.