Skip to content

Commit

Permalink
Remove dead code: import_or_raise utility function (#5876)
Browse files Browse the repository at this point in the history
* Remove dead code import_or_raise utility function

* add news marker
  • Loading branch information
wimglenn authored and xavfernandez committed Oct 21, 2018
1 parent 62c27de commit 3a6a1c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions news/deadbeef.trivial
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

7 changes: 0 additions & 7 deletions src/pip/_internal/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,6 @@
logger.debug('lzma module is not available')


def import_or_raise(pkg_or_module_string, ExceptionType, *args, **kwargs):
try:
return __import__(pkg_or_module_string)
except ImportError:
raise ExceptionType(*args, **kwargs)


def ensure_dir(path):
"""os.path.makedirs without EEXIST."""
try:
Expand Down

0 comments on commit 3a6a1c0

Please sign in to comment.