summaryrefslogtreecommitdiffstats
path: root/Lib/xml/sax/saxutils.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.