aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-07-24 23:03:19 +0200
committerJason R. Coombs <jaraco@jaraco.com>2013-07-24 23:03:19 +0200
commit3d5510a01906bebf369cde304706ce5f52117afe (patch)
treedac56d212951cf109b94d62ad672a1028514bad7 /setuptools/package_index.py
parentd2f68c57b5fbca47a9389c6cf3399f956a6c2aa6 (diff)
downloadexternal_python_setuptools-3d5510a01906bebf369cde304706ce5f52117afe.tar.gz
external_python_setuptools-3d5510a01906bebf369cde304706ce5f52117afe.tar.bz2
external_python_setuptools-3d5510a01906bebf369cde304706ce5f52117afe.zip
Make PackageIndex._vcs_split_rev_from_url a static method (as it doesn't have any instance or class references).
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 26b6583c..9c9d76a1 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -806,7 +806,8 @@ class PackageIndex(Environment):
os.system("svn checkout%s -q %s %s" % (creds, url, filename))
return filename
- def _vcs_split_rev_from_url(self, url, pop_prefix=False):
+ @staticmethod
+ def _vcs_split_rev_from_url(url, pop_prefix=False):
scheme, netloc, path, query, frag = urlsplit(url)
scheme = scheme.split('+', 1)[-1]