Index: dist/src/Lib/XML/sax/saxutils.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/xml/sax/saxutils.py,v retrieving revision 1.21 diff -u -r1.21 saxutils.py --- dist/src/Lib/XML/sax/saxutils.py 24 Apr 2003 16:02:54 -0000 1.21 +++ dist/src/Lib/XML/sax/saxutils.py 22 Feb 2004 07:52:08 -0000 @@ -268,10 +268,11 @@ if source.getByteStream() is None: sysid = source.getSystemId() - if os.path.isfile(sysid): - basehead = os.path.split(os.path.normpath(base))[0] - source.setSystemId(os.path.join(basehead, sysid)) - f = open(sysid, "rb") + basehead = os.path.split(os.path.normpath(base))[0] + sysidfilename = os.path.join(basehead, sysid) + if os.path.isfile(sysidfilename): + source.setSystemId(sysidfilename) + f = open(sysidfilename, "rb") else: source.setSystemId(urlparse.urljoin(base, sysid)) f = urllib.urlopen(source.getSystemId())