summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-01-05 18:41:13 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-01-05 18:41:13 (GMT)
commit5047225baca0e6351c674e00cda396d16c4a07f1 (patch)
tree3dfd649908245f21ce3d474ede1ac4c50b6a4d2f /Doc/library
parent0fc07b10ae5cf2f2b28d1c14f48d04fb582462d0 (diff)
downloadcpython-5047225baca0e6351c674e00cda396d16c4a07f1.zip
cpython-5047225baca0e6351c674e00cda396d16c4a07f1.tar.gz
cpython-5047225baca0e6351c674e00cda396d16c4a07f1.tar.bz2
Merged revisions 87762 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87762 | antoine.pitrou | 2011-01-05 19:37:22 +0100 (mer., 05 janv. 2011) | 3 lines Issue #5485: Add doc for expat.xmlparser.SetParamEntityParsing. ........
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/pyexpat.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/pyexpat.rst b/Doc/library/pyexpat.rst
index 4333588..8299739 100644
--- a/Doc/library/pyexpat.rst
+++ b/Doc/library/pyexpat.rst
@@ -157,6 +157,13 @@ XMLParser Objects
:attr:`ordered_attributes`, :attr:`returns_unicode` and
:attr:`specified_attributes` set to the values of this parser.
+.. method:: xmlparser.SetParamEntityParsing(flag)
+
+ Control parsing of parameter entities (including the external DTD subset).
+ Possible *flag* values are :const:`XML_PARAM_ENTITY_PARSING_NEVER`,
+ :const:`XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE` and
+ :const:`XML_PARAM_ENTITY_PARSING_ALWAYS`. Return true if setting the flag
+ was successful.
.. method:: xmlparser.UseForeignDTD([flag])