Skip to content

Commit

Permalink
Add backwards compatibility with pip v9
Browse files Browse the repository at this point in the history
  • Loading branch information
richardowen authored and xtreme-lisheng-tai committed May 14, 2018
1 parent 560cab4 commit 917ba14
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions bin/license_finder_pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@

import json
import sys
from pip._internal.req import parse_requirements
from pip._internal.download import PipSession

try:
from pip._internal.req import parse_requirements
except ImportError:
from pip.req import parse_requirements
try:
from pip._internal.download import PipSession
except ImportError:
from pip.download import PipSession

from pip._vendor import pkg_resources
from pip._vendor.six import print_

Expand Down

0 comments on commit 917ba14

Please sign in to comment.