1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Remove two unreachable returns in VersionControl.get_src_requirement().

This commit is contained in:
Chris Jerdonek 2018-09-20 00:09:02 -07:00
parent a1b326d692
commit 59b8a80c9b
3 changed files with 0 additions and 4 deletions

View file

@ -295,8 +295,6 @@ class Git(VersionControl):
if not repo.lower().startswith('git:'):
repo = 'git+' + repo
egg_project_name = dist.egg_name().split('-', 1)[0]
if not repo:
return None
current_rev = self.get_revision(location)
req = '%s@%s#egg=%s' % (repo, current_rev, egg_project_name)
subdirectory = self._get_subdirectory(location)

View file

@ -89,8 +89,6 @@ class Mercurial(VersionControl):
if not repo.lower().startswith('hg:'):
repo = 'hg+' + repo
egg_project_name = dist.egg_name().split('-', 1)[0]
if not repo:
return None
current_rev_hash = self.get_revision_hash(location)
return '%s@%s#egg=%s' % (repo, current_rev_hash, egg_project_name)