[Checkins] SVN: zc.buildout/trunk/src/zc/buildout/download.py added a comment to explain the intent of the regexp
Thomas Lotze
tl at gocept.com
Tue Dec 14 06:52:06 EST 2010
Log message for revision 118861:
added a comment to explain the intent of the regexp
Changed:
U zc.buildout/trunk/src/zc/buildout/download.py
-=-
Modified: zc.buildout/trunk/src/zc/buildout/download.py
===================================================================
--- zc.buildout/trunk/src/zc/buildout/download.py 2010-12-14 10:55:01 UTC (rev 118860)
+++ zc.buildout/trunk/src/zc/buildout/download.py 2010-12-14 11:52:05 UTC (rev 118861)
@@ -149,8 +149,11 @@
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':
More information about the checkins
mailing list