Permalink
Browse files

Workaround for GH-556

  • Loading branch information...
1 parent 32fad40 commit 5f7025bc02611448ad087cfc444d6f3dc82ea772 @msabramo committed Jun 2, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 pip/__init__.py
View
@@ -83,9 +83,12 @@ def autocomplete():
def version_control():
# Import all the version control support modules:
from pip import vcs
- for importer, modname, ispkg in \
- walk_packages(path=vcs.__path__, prefix=vcs.__name__+'.'):
- __import__(modname)
+ modules = walk_packages(path=vcs.__path__, prefix=vcs.__name__+'.')
+ if list(modules):
+ for importer, modname, ispkg in modules:
+ __import__(modname)
+ else:
+ from pip.vcs import git, mercurial, subversion, bazaar
def main(initial_args=None):

3 comments on commit 5f7025b

lgtm

Owner

msabramo replied Jun 3, 2012

What's "igtm"?

looks good to me

Please sign in to comment.