[Zope3-checkins] CVS: ZODB3/ZConfig - Context.py:1.11

Guido van Rossum guido@python.org
Sat, 23 Nov 2002 01:37:39 -0500


Update of /cvs-repository/ZODB3/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv3017

Modified Files:
	Context.py 
Log Message:
This code needs to run under Python 2.1 as well as 2.2 and beyond!
Don't use urlparse.urlsplit(), which was introduced in 2.2.


=== ZODB3/ZConfig/Context.py 1.10 => 1.11 ===
--- ZODB3/ZConfig/Context.py:1.10	Fri Nov 22 14:50:55 2002
+++ ZODB3/ZConfig/Context.py	Sat Nov 23 01:37:38 2002
@@ -45,7 +45,7 @@
         if os.path.exists(url):
             url = "file://" + urllib.pathname2url(os.path.abspath(url))
         else:
-            parts = urlparse.urlsplit(url)
+            parts = urlparse.urlparse(url)
             if not parts[0]:
                 raise ValueError("invalid URL, or file does not exist:\n"
                                  + repr(url))