Commit 03c91c0a authored by tlotze's avatar tlotze

added a comment to explain the intent of the regexp

git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@118861 62d5b8a3-27da-0310-9561-8e5933582275
parent 38e4bcca
......@@ -149,8 +149,11 @@ class Download(object):
returned and the client code is responsible for cleaning it up.
"""
# Make sure the drive letter in windows-style file paths isn't
# interpreted as a URL scheme.
if re.match(r"^[A-Za-z]:\\", url):
url = 'file:' + url
parsed_url = urlparse.urlparse(url, 'file')
url_scheme, _, url_path = parsed_url[:3]
if url_scheme == 'file':
......
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