[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-10-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: According to http://www.w3.org/TR/xml-names/: “The prefix xml is by definition bound to the namespace name http://www.w3.org/XML/1998/namespace. It MAY, but need not, be declared, and MUST NOT be bound to any other namespace name. Other

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-10-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r85858 (3.2), r85859 (3.1) and r85860 (2.7). Thank you! -- resolution: accepted - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-18 Thread Troy J. Farrell
Troy J. Farrell t...@entheossoft.com added the comment: Hi guys. I'd like to take a moment to remind everyone that this issue has a small patch with two tests and comments. Please don't let it get lost. :) Thanks, Troy -- ___ Python tracker

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-07 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: There are no specific maintainers for xml.sax.utils. As per RDM's suggestion, Fred or Martin, do either of you have any comments on this or who it might be referred to? -- nosy: +fdrake, loewis ___

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-07 Thread Troy J. Farrell
Changes by Troy J. Farrell t...@entheossoft.com: Removed file: http://bugs.python.org/file18408/issue5027.trunk.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5027 ___

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-07 Thread Troy J. Farrell
Changes by Troy J. Farrell t...@entheossoft.com: Removed file: http://bugs.python.org/file18409/issue5027.py3k.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5027 ___

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-07 Thread Troy J. Farrell
Troy J. Farrell t...@entheossoft.com added the comment: I'm attaching new patches for 2.7 and 3.2, now with comments. :) -- Added file: http://bugs.python.org/file18429/issue5027.py27.diff ___ Python tracker rep...@bugs.python.org

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-07 Thread Troy J. Farrell
Changes by Troy J. Farrell t...@entheossoft.com: Added file: http://bugs.python.org/file18430/issue5027.py3k.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5027 ___

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-06 Thread Troy J. Farrell
Troy J. Farrell t...@entheossoft.com added the comment: I figured it was probably too late, but one can always hope. :) While you sort out who gets to review this, I'll see if I can't work out a patch for 2.7. It also occurred to me last night that I should probably add a comment to it.

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-05 Thread Troy J. Farrell
Troy J. Farrell t...@entheossoft.com added the comment: I've attached a patch against branches/py3k that tests and fixes the issue. I don't suppose this fix (if I backport it) could make it into 2.6.6, could it? -- Added file: http://bugs.python.org/file18407/issue5027.diff

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-05 Thread Troy J. Farrell
Changes by Troy J. Farrell t...@entheossoft.com: Added file: http://bugs.python.org/file18408/issue5027.trunk.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5027 ___

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-05 Thread Troy J. Farrell
Troy J. Farrell t...@entheossoft.com added the comment: I've created tests and patches for the trunk and branches/py3k. The only difference between the two is the use of u'' for a Unicode string in the trunk. (IIRC, Py3k treats all strings as Unicode.) -- Added file:

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-05 Thread Troy J. Farrell
Changes by Troy J. Farrell t...@entheossoft.com: Removed file: http://bugs.python.org/file18407/issue5027.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5027 ___

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-05 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: It is about a week too late for 2.6.6. rc1 is just out and only critically needed fixes before the final. For future reference, 'trunk' is frozen. 2.7 patches should be against '2.7maintenace' (or however spelled) but I assume this should

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-08-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Can you add a unittest, based on the example, that fails before and passes after the patch? Assuming this applies to Py3, make patch against py3k branch (or at least 3.2a1 release), which is now 'trunk'. That aside, the patch is a simple

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2009-12-01 Thread Troy J. Farrell
Troy J. Farrell t...@entheossoft.com added the comment: I've duplicated the issue and the fix using Python 2.6.2. I'm attaching Soren Roug's fix in patch form. (I created the patch against r53754 of saxutils.py.) -- keywords: +patch nosy: +troy versions: +Python 2.6 Added file:

[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2009-01-21 Thread Soren Roug
New submission from Soren Roug soren.r...@eea.europa.eu: The 'xml' namespace in XML files is special in that it need not be declared. When xml.sax.saxutils.XMLGenerator is used with the namespace feature it does not know how to handle it. Example. The code: import xml.sax, xml.sax.saxutils