summaryrefslogtreecommitdiffstats
path: root/Lib/xml/sax/saxutils.py
Commit message (Collapse)AuthorAgeFilesLines
* Patch 1463026: Support default namespace in XMLGenerator.Martin v. Löwis2007-02-121-16/+19
| | | | Fixes #847665. Will backport.
* expunge the xmlcore changes:Fred Drake2006-07-291-0/+299
| | | | | | | | | | | | | | | | | | | 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
* move the xml package implementation to xmlcore, and adjust the tests toFred Drake2005-12-141-297/+0
| | | | | test that package, not the xmlcore/PyXML switcheroo fiasco in the xml module/package
* fix XMLFilterBase.resolveEntity() so the caller gets the resultFred Drake2005-02-031-1/+1
| | | | (PyXML bug #1112052)
* when only using half of the return value of os.path.split(), useFred Drake2004-10-201-1/+1
| | | | os.path.dirname() or os.path.basename() instead
* SF bug #902037: relative on-disk SYSTEM id handling is incorrectRaymond Hettinger2004-10-201-4/+5
| | | | | | (Contributed by Bob Ippolito.) backport candidate.
* Consider output encoding in XMLGenerator. Fixes #938076.Martin v. Löwis2004-05-061-13/+28
| | | | Backported to 2.3.
* Properly delegate startElementNS in saxutils.XMLFilterBase. Fixes #936637.Martin v. Löwis2004-05-061-1/+1
| | | | Backported to 2.3.
* Whitespace normalization.Tim Peters2003-04-241-1/+1
|
* Minor simplification.Fred Drake2002-10-281-2/+1
|
* Really do replacement of & last to avoid bad interactions between &Fred Drake2002-10-281-2/+2
| | | | replacement and replacements based on the entities parameter.
* Avoid calling __dict_replace() if we don't need to -- the call is muchFred Drake2002-10-281-8/+10
| | | | | more expensive than just doing to work needed, and these things seem to always turn into a bottleneck eventually.
* Patch #613256: Add nescape method to xml.sax.saxutils.Martin v. Löwis2002-10-261-6/+26
|
* Make sure XMLGenerator uses quoteattr() instead of escape() to quoteFred Drake2001-08-071-2/+2
| | | | | | | attribute values. Just using escape() can (and always has) led to broken XML being generated. This makes sure it always produces the right thing. This actually closes SF bug #440351.
* Added function xml.sax.saxutils.quoteattr().Fred Drake2001-07-191-0/+21
| | | | This closes SF bug #440351. It should not be moved to Python 2.1.1.
* Do not assume that types.UnicodeType exists; we might be running in an oldFred Drake2000-12-161-1/+5
| | | | version of Python. ;-(
* Fix bug in prepare_input_source (patched by Paul P., sourceforge.net downLars Gustäbel2000-10-241-1/+1
| | | | now, so can't find number).
* Make reindent.py happy (lots of trailing whitespace removed).Fred Drake2000-10-231-9/+9
|
* Added parent attribute with getters and setters on XMLFilterBase.Lars Gustäbel2000-10-111-0/+12
|
* Don't use a file object as system id; try to propagate the file name toMartin v. Löwis2000-10-061-1/+3
| | | | the InputSource.
* Support non-namespace elements in *ElementNS of XMLGenerator.Martin v. Löwis2000-10-031-2/+10
|
* Fix handling of file inputs on Windows; passing them to urllib.urlopen()Fred Drake2000-09-261-3/+5
| | | | | | | | caused the drive letter to cause urlopen() to think it was an unrecognized URL scheme. This only passes system ids to urlopen() if the file does not exist. It works on Windows & Unix. It should work everywhere else as well.
* [Patch 101634]Martin v. Löwis2000-09-241-2/+8
| | | | | | | xml.sax: Fix parse and parseString not to rely on ExpatParser Greatly simplify import logic by using __import__ saxutils: Support Unicode strings and files as parameters to prepare_input_source
* Added back the InputSource class (patch 101630).Lars Gustäbel2000-09-241-0/+22
|
* Bug fix to namespace handling in XMLGenerator (now adds declarations).Lars Gustäbel2000-09-241-5/+13
| | | | | Bug fixes to XMLFilterBase (wrong ignorableWhitespace signature and did not inherit set*Handler methods from XMLReader.)
* Updated XMLGenerator to new DocumentHandler interface (patch 101572).Lars Gustäbel2000-09-211-11/+30
|
* Reduce the number of imports needed.Fred Drake2000-09-181-20/+23
| | | | Make the code conform better to the Python style guide.
* Removed unncessary dependency.Paul Prescod2000-07-011-1/+1
|
* Paul Prescod <paul@prescod.net>:Fred Drake2000-06-291-0/+153
SAX interfaces for Python.