Skip to content

Commit fe8980b

Browse files
committed
Remove pop_prefix parameter, unused.
1 parent 4a0a9ce commit fe8980b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setuptools/package_index.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ def _download_svn(self, url, _filename):
863863
raise DistutilsError(f"Invalid config, SVN download is not supported: {url}")
864864

865865
@staticmethod
866-
def _vcs_split_rev_from_url(url, pop_prefix=False):
866+
def _vcs_split_rev_from_url(url):
867867
scheme, netloc, path, query, frag = urllib.parse.urlsplit(url)
868868

869869
scheme = scheme.split('+', 1)[-1]
@@ -882,7 +882,7 @@ def _vcs_split_rev_from_url(url, pop_prefix=False):
882882

883883
def _download_git(self, url, filename):
884884
filename = filename.split('#', 1)[0]
885-
url, rev = self._vcs_split_rev_from_url(url, pop_prefix=True)
885+
url, rev = self._vcs_split_rev_from_url(url)
886886

887887
self.info("Doing git clone from %s to %s", url, filename)
888888
os.system("git clone --quiet %s %s" % (url, filename))
@@ -901,7 +901,7 @@ def _download_git(self, url, filename):
901901

902902
def _download_hg(self, url, filename):
903903
filename = filename.split('#', 1)[0]
904-
url, rev = self._vcs_split_rev_from_url(url, pop_prefix=True)
904+
url, rev = self._vcs_split_rev_from_url(url)
905905

906906
self.info("Doing hg clone from %s to %s", url, filename)
907907
os.system("hg clone --quiet %s %s" % (url, filename))

0 commit comments

Comments
 (0)