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:
parent
a1b326d692
commit
59b8a80c9b
3 changed files with 0 additions and 4 deletions
0
news/8CC94B14-B963-4645-BB9C-D63C6D854294.trivial
Normal file
0
news/8CC94B14-B963-4645-BB9C-D63C6D854294.trivial
Normal 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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue