diff options
author | Guido van Rossum <guido@python.org> | 2007-07-23 17:42:32 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-07-23 17:42:32 (GMT) |
commit | 4ca947183154a7cfc7a6ccbb2e5c856a16a5dce3 (patch) | |
tree | 2d0aa37ade9702ac5af2725414d6ab24b0125171 /Doc | |
parent | 9e473c28e4eb65e86fc11a5717cc6e7e1febd898 (diff) | |
download | cpython-4ca947183154a7cfc7a6ccbb2e5c856a16a5dce3.zip cpython-4ca947183154a7cfc7a6ccbb2e5c856a16a5dce3.tar.gz cpython-4ca947183154a7cfc7a6ccbb2e5c856a16a5dce3.tar.bz2 |
SF patch# 1759016 by Joe Gregorio, who writes:
1. Removed "returns_unicode" attribute, associated code
in the module to support that attribute, and all tests
associated with it.
2. Parsed data is now returned as unicode strings.
3. Changed input tests to use io.BytesIO instead
of StringIO, to reflect the byte processing
nature of expat.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libpyexpat.tex | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/Doc/lib/libpyexpat.tex b/Doc/lib/libpyexpat.tex index a0ea8a1..ed0bf6a 100644 --- a/Doc/lib/libpyexpat.tex +++ b/Doc/lib/libpyexpat.tex @@ -151,8 +151,8 @@ Create a ``child'' parser which can be used to parse an external parsed entity referred to by content parsed by the parent parser. The \var{context} parameter should be the string passed to the \method{ExternalEntityRefHandler()} handler function, described below. -The child parser is created with the \member{ordered_attributes}, -\member{returns_unicode} and \member{specified_attributes} set to the +The child parser is created with the \member{ordered_attributes} +and \member{specified_attributes} set to the values of this parser. \end{methoddesc} @@ -214,16 +214,6 @@ any time. \versionadded{2.1} \end{memberdesc} -\begin{memberdesc}[xmlparser]{returns_unicode} -If this attribute is set to a non-zero integer, the handler functions -will be passed Unicode strings. If \member{returns_unicode} is -\constant{False}, 8-bit strings containing UTF-8 encoded data will be -passed to the handlers. This is \constant{True} by default when -Python is built with Unicode support. -\versionchanged[Can be changed at any time to affect the result - type]{1.6} -\end{memberdesc} - \begin{memberdesc}[xmlparser]{specified_attributes} If set to a non-zero integer, the parser will report only those attributes which were specified in the document instance and not those @@ -290,8 +280,7 @@ Called when the XML declaration is parsed. The XML declaration is the (optional) declaration of the applicable version of the XML recommendation, the encoding of the document text, and an optional ``standalone'' declaration. \var{version} and \var{encoding} will be -strings of the type dictated by the \member{returns_unicode} -attribute, and \var{standalone} will be \code{1} if the document is +strings, and \var{standalone} will be \code{1} if the document is declared standalone, \code{0} if it is declared not to be standalone, or \code{-1} if the standalone clause was omitted. This is only available with Expat version 1.95.0 or newer. |