[Zodb-checkins] CVS: Packages/ZConfig - url.py:1.5
Fred L. Drake, Jr.
fred@zope.com
Wed, 15 Jan 2003 13:44:37 -0500
Update of /cvs-repository/Packages/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv16803
Modified Files:
url.py
Log Message:
urlnormalize(): Remove cruftiness that doesn't make sense.
=== Packages/ZConfig/url.py 1.4 => 1.5 ===
--- Packages/ZConfig/url.py:1.4 Wed Jan 8 00:42:45 2003
+++ Packages/ZConfig/url.py Wed Jan 15 13:44:33 2003
@@ -41,12 +41,8 @@
def urlnormalize(url):
- parts = urlsplit(url)
- if not parts[0]:
- raise ValueError("invalid URL, or file does not exist:\n"
- + repr(url))
- url = urlunsplit(parts)
- if url.startswith("file:/") and not url.startswith("file:///"):
+ lc = url.lower()
+ if lc.startswith("file:/") and not lc.startswith("file:///"):
url = "file://" + url[5:]
return url