Serhiy Storchaka
3234abb9a0
Issue #24125 : Saved error's line and column numbers when an error is occured
...
during closing expatreader. Fixed a regression introduced in issue #23865 .
2015-05-06 09:35:52 +03:00
Serhiy Storchaka
1aa2c0f073
Issue #23865 : close() methods in multiple modules now are idempotent and more
...
robust at shutdown. If needs to release multiple resources, they are released
even if errors are occured.
2015-04-10 13:24:10 +03:00
Raymond Hettinger
1b5f58d167
Issue #21990 : Cleanup unnecessary inner class definition in saxutils.
2014-07-25 10:26:36 -07:00
Serhiy Storchaka
7423903eee
Issue #17606 : Fixed support of encoded byte strings in the XMLGenerator
...
characters() and ignorableWhitespace() methods. Original patch by Sebastian
Ortiz Vasquez.
2013-05-12 17:29:34 +03:00
Serhiy Storchaka
93bfe7d860
Issue #1470548 : Do not buffer XMLGenerator output.
...
Add test for fragment producing with XMLGenerator.
2013-02-25 13:31:29 +02:00
Serhiy Storchaka
f898038ca0
Issue #1470548 : XMLGenerator now works with UTF-16 and UTF-32 encodings.
2013-02-10 14:26:08 +02:00
Serhiy Storchaka
8673ab97cc
Issue #11159 : SAX parser now supports unicode file names.
2013-02-02 10:28:30 +02:00
Andrew Svetlov
4bb142b1b7
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:27:37 +02:00
Antoine Pitrou
7f08102bc6
Merged revisions 85858 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85858 | antoine.pitrou | 2010-10-27 20:33:30 +0200 (mer., 27 oct. 2010) | 5 lines
Issue #5027 : The standard `xml` namespace is now understood by
xml.sax.saxutils.XMLGenerator as being bound to
http://www.w3.org/XML/1998/namespace. Patch by Troy J. Farrell.
........
2010-10-27 18:43:21 +00:00
Jack Diederich
429a74a11a
issue#6442 use in operator instead of has_key
2010-02-23 19:34:06 +00:00
Benjamin Peterson
6e3dbbdf39
replace has_key with 'in' operator
2009-10-09 22:15:50 +00:00
Amaury Forgeot d'Arc
e71bd81a89
#4490 Fix sample code run by "python -m xml.sax.xmlreader"
2009-06-22 19:33:48 +00:00
Brett Cannon
5b3d3729ba
Remove dict.has_key() usage in xml.sax to silence warnings under -3.
2008-08-04 21:10:50 +00:00
Benjamin Peterson
5b63acd31e
#2503 make singletons compared with "is" not == or !=
...
Thanks to Wummel for the patch
2008-03-29 15:24:25 +00:00
Martin v. Löwis
2bad58f5a4
Patch 1463026: Support default namespace in XMLGenerator.
...
Fixes #847665 . Will backport.
2007-02-12 12:21:10 +00:00
Fred Drake
fbdeaad069
expunge the xmlcore changes:
...
41667, 41668 - initial switch to xmlcore
47044 - mention of xmlcore in What's New
50687 - mention of xmlcore in the library reference
re-apply xmlcore changes to xml:
41674 - line ending changes (re-applied manually), directory props
41677 - add cElementTree wrapper
41678 - PSF licensing for etree
41812 - whitespace normalization
42724 - fix svn:eol-style settings
43681, 43682 - remove Python version-compatibility cruft from minidom
46773 - fix encoding of \r\n\t in attr values in saxutils
47269 - added XMLParser alias for cElementTree compatibility
additional tests were added in Lib/test/test_sax.py that failed with
the xmlcore changes; these relate to SF bugs #1511497 , #1513611
2006-07-29 16:56:15 +00:00
Fred Drake
c6730e1772
move the xml package implementation to xmlcore, and adjust the tests to
...
test that package, not the xmlcore/PyXML switcheroo fiasco in the xml
module/package
2005-12-14 06:20:35 +00:00
Andrew M. Kuchling
593d6b311e
[Bug #1281032 ] Pass encoding from the input source to pyexpat's ParserCreate()
2005-12-04 19:53:45 +00:00
Fred Drake
e4772f3ada
fix XMLFilterBase.resolveEntity() so the caller gets the result
...
(PyXML bug #1112052 )
2005-02-03 17:31:39 +00:00
Fred Drake
910b282fbb
when only using half of the return value of os.path.split(), use
...
os.path.dirname() or os.path.basename() instead
2004-10-20 11:08:35 +00:00
Raymond Hettinger
06d9b1f30b
SF bug #902037 : relative on-disk SYSTEM id handling is incorrect
...
(Contributed by Bob Ippolito.)
backport candidate.
2004-10-20 08:21:19 +00:00
Tim Peters
182b5aca27
Whitespace normalization, via reindent.py.
2004-07-18 06:16:08 +00:00
Fred Drake
e143bbb610
fix documentation for ContentHandler.ignorableWhitespace()
...
(closes SF bug #881707 )
2004-05-06 03:47:48 +00:00
Martin v. Löwis
ae20722d96
Consider output encoding in XMLGenerator. Fixes #938076 .
...
Backported to 2.3.
2004-05-06 02:22:43 +00:00
Martin v. Löwis
0ea558f7b4
Properly delegate startElementNS in saxutils.XMLFilterBase. Fixes #936637 .
...
Backported to 2.3.
2004-05-06 02:04:21 +00:00