
Update of /cvsroot/python/python/dist/src/Lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1753/Lib Modified Files: xmllib.py Log Message: Do not use the default namespace for attributes. Fixes http://bugs.debian.org/229885 Will backport to 2.3. Index: xmllib.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/xmllib.py,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** xmllib.py 12 Feb 2004 17:35:07 -0000 1.32 --- xmllib.py 2 May 2004 20:37:13 -0000 1.33 *************** *** 7,12 **** import warnings ! warnings.warn("The xmllib module is obsolete. Use xml.sax instead.", ! DeprecationWarning) del warnings --- 7,11 ---- import warnings ! warnings.warn("The xmllib module is obsolete. Use xml.sax instead.", DeprecationWarning) del warnings *************** *** 642,659 **** if self.__map_case: key = key.lower() ! if aprefix is None: ! aprefix = '' ! ans = None ! for t, d, nst in self.stack: ! if aprefix in d: ! ans = d[aprefix] ! if ans is None and aprefix != '': ! ans = self.__namespaces.get(aprefix) ! if ans is not None: ! key = ans + ' ' + key ! elif aprefix != '': ! key = aprefix + ':' + key ! elif ns is not None: ! key = ns + ' ' + key nattrdict[key] = val attrnamemap[key] = okey --- 641,655 ---- if self.__map_case: key = key.lower() ! if aprefix is not None: ! ans = None ! for t, d, nst in self.stack: ! if aprefix in d: ! ans = d[aprefix] ! if ans is None: ! ans = self.__namespaces.get(aprefix) ! if ans is not None: ! key = ans + ' ' + key ! else: ! key = aprefix + ':' + key nattrdict[key] = val attrnamemap[key] = okey
participants (1)
-
loewis@users.sourceforge.net