[Python-checkins] python/dist/src/Lib/xml/sax saxutils.py, 1.24, 1.25

fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Wed Oct 20 13:08:38 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/xml/sax
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24823

Modified Files:
	saxutils.py 
Log Message:
when only using half of the return value of os.path.split(), use
os.path.dirname() or os.path.basename() instead


Index: saxutils.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xml/sax/saxutils.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- saxutils.py	20 Oct 2004 08:21:19 -0000	1.24
+++ saxutils.py	20 Oct 2004 11:08:35 -0000	1.25
@@ -283,7 +283,7 @@
 
     if source.getByteStream() is None:
         sysid = source.getSystemId()
-        basehead = os.path.split(os.path.normpath(base))[0]
+        basehead = os.path.dirname(os.path.normpath(base))
         sysidfilename = os.path.join(basehead, sysid)
         if os.path.isfile(sysidfilename):
             source.setSystemId(sysidfilename)



More information about the Python-checkins mailing list