Commit 3d5510a0 authored by Jason R. Coombs's avatar Jason R. Coombs

Make PackageIndex._vcs_split_rev_from_url a static method (as it doesn't have...

Make PackageIndex._vcs_split_rev_from_url a static method (as it doesn't have any instance or class references).
parent d2f68c57
...@@ -806,7 +806,8 @@ class PackageIndex(Environment): ...@@ -806,7 +806,8 @@ class PackageIndex(Environment):
os.system("svn checkout%s -q %s %s" % (creds, url, filename)) os.system("svn checkout%s -q %s %s" % (creds, url, filename))
return 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, netloc, path, query, frag = urlsplit(url)
scheme = scheme.split('+', 1)[-1] scheme = scheme.split('+', 1)[-1]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment