Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix XMLFilterBase.resolveEntity() so the caller gets the result | Fred Drake | 2005-02-03 | 1 | -1/+1 |
| | | | | (PyXML bug #1112052) | ||||
* | when only using half of the return value of os.path.split(), use | Fred Drake | 2004-10-20 | 1 | -1/+1 |
| | | | | os.path.dirname() or os.path.basename() instead | ||||
* | SF bug #902037: relative on-disk SYSTEM id handling is incorrect | Raymond Hettinger | 2004-10-20 | 1 | -4/+5 |
| | | | | | | (Contributed by Bob Ippolito.) backport candidate. | ||||
* | Whitespace normalization, via reindent.py. | Tim Peters | 2004-07-18 | 1 | -2/+2 |
| | |||||
* | fix documentation for ContentHandler.ignorableWhitespace() | Fred Drake | 2004-05-06 | 1 | -4/+1 |
| | | | | (closes SF bug #881707) | ||||
* | Consider output encoding in XMLGenerator. Fixes #938076. | Martin v. Löwis | 2004-05-06 | 1 | -13/+28 |
| | | | | Backported to 2.3. | ||||
* | Properly delegate startElementNS in saxutils.XMLFilterBase. Fixes #936637. | Martin v. Löwis | 2004-05-06 | 1 | -1/+1 |
| | | | | Backported to 2.3. | ||||
* | Swap public and system ID in start_doctype_decl. Fixes #780300. | Martin v. Löwis | 2004-05-06 | 1 | -1/+1 |
| | |||||
* | commit the portion of PyXML patch #919008 that is relevant to the | Fred Drake | 2004-03-20 | 1 | -2/+7 |
| | | | | | | | standard library: str() of xml.sax.SAXParseException should not fail if the line and/or column number returned by the locator are None (tests added) | ||||
* | Whitespace normalization. | Tim Peters | 2003-04-24 | 2 | -2/+2 |
| | |||||
* | Get rid of many apply() calls. | Guido van Rossum | 2003-02-27 | 1 | -1/+1 |
| | |||||
* | SF patch 672098: Three __contains__ implementations | Raymond Hettinger | 2003-01-30 | 1 | -0/+3 |
| | | | | Contributed by Jp Calderone. | ||||
* | Merge with PyXML 1.28: | Martin v. Löwis | 2003-01-25 | 1 | -22/+71 |
| | | | | | | | | | | | | | | | | | Wrap a lot of long lines. Clean up a handler for expat.error. If a lexical handler is set, make sure we call the startDTD() and endDTD(). If the lexical handler is unset (by setting it to None), remove the handlers from the underlying pyexpat parser object. Closes SF bug #485584. In namespaces mode, make sure we set up the qnames dictionary correctly for the AttributesNSImpl instance passed to the start-element-handler. Closes SF bug #563399. Support skippedEntity. Fixes #665486. | ||||
* | Minor simplification. | Fred Drake | 2002-10-28 | 1 | -2/+1 |
| | |||||
* | Really do replacement of & last to avoid bad interactions between & | Fred Drake | 2002-10-28 | 1 | -2/+2 |
| | | | | replacement and replacements based on the entities parameter. | ||||
* | Avoid calling __dict_replace() if we don't need to -- the call is much | Fred Drake | 2002-10-28 | 1 | -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öwis | 2002-10-26 | 1 | -6/+26 |
| | |||||
* | Merge from PyXML: | Martin v. Löwis | 2002-06-30 | 1 | -2/+26 |
| | | | | | | [1.3] Added documentation of the namespace URI for elements with no namespace. [1.4] New property http://www.python.org/sax/properties/encoding. [1.5] Support optional string interning in pyexpat. | ||||
* | Fix spacing. | Martin v. Löwis | 2002-06-30 | 1 | -1/+1 |
| | |||||
* | Merge changes from PyXML: | Martin v. Löwis | 2002-06-30 | 1 | -13/+76 |
| | | | | | | | | | | | | | | | | | | | | [1.15] Added understanding of the feature_validation, feature_external_pes, and feature_string_interning features. Added support for the feature_external_ges feature. Added support for the property_xml_string property. [1.16] Made it recognize the namespace prefixes feature. [1.17] removed erroneous first line [1.19] Support optional string interning in pyexpat. [1.21] Restore compatibility with versions of Python that did not support weak references. These do not get the cyclic reference fix, but they will continue to work as they did before. [1.22] Activate entity processing unless standalone. | ||||
* | Use more string methods, remove import string | Neal Norwitz | 2002-05-31 | 2 | -7/+6 |
| | |||||
* | Not sure why the regression test missed this, but the PyXML tests caught it. | Fred Drake | 2002-04-04 | 1 | -1/+1 |
| | | | | We should get attributes from the right object. | ||||
* | Avoid creating circular references between the ExpatParser and the | Fred Drake | 2002-04-04 | 1 | -1/+38 |
| | | | | | | | ContentHandler. While GC will eventually clean up, it can take longer than normal for applications that create a lot of strings (or other immutables) rather without creating many containers. This closes SF bug #535474. | ||||
* | Make sure XMLGenerator uses quoteattr() instead of escape() to quote | Fred Drake | 2001-08-07 | 1 | -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. | ||||
* | Add dead imports of modules that are "magically" imported. | Martin v. Löwis | 2001-07-31 | 1 | -0/+5 |
| | |||||
* | Get the whitespace right! | Fred Drake | 2001-07-30 | 1 | -3/+3 |
| | |||||
* | Ugly fix used when pyexpat is not available. | Jeremy Hylton | 2001-07-30 | 1 | -0/+3 |
| | | | | | | | | | | If pyexpat is not available and more than one attempt is made to load an expat-based xml parser, an empty xml.parser.expat module will be created. This empty module will confuse xml.sax.expatreader into thinking that pyexpat is available. The ugly fix is to verify that the expat module actually defines the names that are imported from pyexpat. | ||||
* | Added function xml.sax.saxutils.quoteattr(). | Fred Drake | 2001-07-19 | 1 | -0/+21 |
| | | | | This closes SF bug #440351. It should not be moved to Python 2.1.1. | ||||
* | Synchronize with 1.13 of PyXML: | Martin v. Löwis | 2001-06-17 | 1 | -6/+28 |
| | | | | | | Allow application to set a new content handler and lex_prop handler during parsing. Closes bug #433761. Small hack to make expat be ignored in Jython. | ||||
* | Previous check-in was by mistake, undo it. | Martin v. Löwis | 2001-06-07 | 1 | -1/+3 |
| | |||||
* | Patch #416220: Fix misplaced paren. | Martin v. Löwis | 2001-06-07 | 1 | -3/+1 |
| | |||||
* | Synchronize with 1.6 of PyXML: | Martin v. Löwis | 2001-03-22 | 1 | -3/+11 |
| | | | | | Retrieve relevant information at construction time, as it may be lost when the exception is printed. | ||||
* | Import the exceptions that this module can raise. | Fred Drake | 2001-03-14 | 1 | -0/+3 |
| | |||||
* | Re-indent. | Martin v. Löwis | 2001-01-27 | 1 | -4/+4 |
| | |||||
* | Synchronize with PyXML 1.5. | Martin v. Löwis | 2001-01-27 | 2 | -1/+2 |
| | |||||
* | Synchronize with PyXML 1.10 | Martin v. Löwis | 2001-01-27 | 1 | -7/+25 |
| | | | | | Break cycle involving expat parser in close(). Add lex handler support to SAX2 pyexpat | ||||
* | Do not assume that types.UnicodeType exists; we might be running in an old | Fred Drake | 2000-12-16 | 1 | -1/+5 |
| | | | | version of Python. ;-( | ||||
* | When raising KeyError, provide the key value that failed. | Fred Drake | 2000-12-13 | 1 | -4/+4 |
| | |||||
* | Fix bug in prepare_input_source (patched by Paul P., sourceforge.net down | Lars Gustäbel | 2000-10-24 | 1 | -1/+1 |
| | | | | now, so can't find number). | ||||
* | Make reindent.py happy (lots of trailing whitespace removed). | Fred Drake | 2000-10-23 | 6 | -82/+82 |
| | |||||
* | Fixed a bug that caused namespace names to be reported as lists rather | Lars Gustäbel | 2000-10-19 | 1 | -0/+2 |
| | | | | than tuples. | ||||
* | Fixed minor problem with reset(). | Lars Gustäbel | 2000-10-14 | 1 | -1/+2 |
| | |||||
* | Added parent attribute with getters and setters on XMLFilterBase. | Lars Gustäbel | 2000-10-11 | 1 | -0/+12 |
| | |||||
* | _exceptions: Format a missing system id as <unknown>. | Martin v. Löwis | 2000-10-09 | 2 | -5/+7 |
| | | | | expatreader: Use the error handler instead of raising exception directly. | ||||
* | In an incremental parser, close the parser after feeding everything. | Martin v. Löwis | 2000-10-06 | 1 | -0/+1 |
| | |||||
* | Don't use a file object as system id; try to propagate the file name to | Martin v. Löwis | 2000-10-06 | 1 | -1/+3 |
| | | | | the InputSource. | ||||
* | Don't report a final chunk for an external entity parser. | Martin v. Löwis | 2000-10-06 | 1 | -1/+0 |
| | |||||
* | Move translation from expat.error to SAXParseException into feed, so that | Martin v. Löwis | 2000-10-06 | 1 | -17/+19 |
| | | | | | | | | | | callers of feed will get a SAXException. In close, feed the last chunk first before calling endDocument, so that the parser may report errors before the end of the document. Don't do anything in a nested parser. Don't call endDocument in parse; that will be called in close. Use self._source for finding the SystemID; XML_GetBase will be cleared in case of an error. | ||||
* | Add SAXReaderNotAvailable, and use it to distinguish between an | Martin v. Löwis | 2000-10-06 | 3 | -3/+25 |
| | | | | ImportError, and a missing driver. | ||||
* | Support non-namespace elements in *ElementNS of XMLGenerator. | Martin v. Löwis | 2000-10-03 | 1 | -2/+10 |
| |