Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/pyexpat.rst

    r2 r391  
    1414   directive.  Since they are attributes which are set by client code, in-text
    1515   references to these attributes should be marked using the :member: role.
     16
     17
     18.. warning::
     19
     20   The :mod:`pyexpat` module is not secure against maliciously
     21   constructed data.  If you need to parse untrusted or unauthenticated data see
     22   :ref:`xml-vulnerabilities`.
     23
    1624
    1725.. versionadded:: 2.0
     
    158166   :attr:`specified_attributes` set to the values of this parser.
    159167
     168.. method:: xmlparser.SetParamEntityParsing(flag)
     169
     170   Control parsing of parameter entities (including the external DTD subset).
     171   Possible *flag* values are :const:`XML_PARAM_ENTITY_PARSING_NEVER`,
     172   :const:`XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE` and
     173   :const:`XML_PARAM_ENTITY_PARSING_ALWAYS`.  Return true if setting the flag
     174   was successful.
    160175
    161176.. method:: xmlparser.UseForeignDTD([flag])
     
    431446
    432447   Called for comments.  *data* is the text of the comment, excluding the leading
    433    '``<!-``\ ``-``' and trailing '``-``\ ``->``'.
     448   ``'<!-``\ ``-'`` and trailing ``'-``\ ``->'``.
    434449
    435450
     
    465480   This happens when there is an external subset or a reference to a parameter
    466481   entity, but the XML declaration does not set standalone to ``yes`` in an XML
    467    declaration.  If this handler returns ``0``, then the parser will throw an
     482   declaration.  If this handler returns ``0``, then the parser will raise an
    468483   :const:`XML_ERROR_NOT_STANDALONE` error.  If this handler is not set, no
    469484   exception is raised by the parser for this condition.
     
    482497   ``ExternalEntityParserCreate(context)``, initializing it with the appropriate
    483498   callbacks, and parsing the entity.  This handler should return an integer; if it
    484    returns ``0``, the parser will throw an
     499   returns ``0``, the parser will raise an
    485500   :const:`XML_ERROR_EXTERNAL_ENTITY_HANDLING` error, otherwise parsing will
    486501   continue.
Note: See TracChangeset for help on using the changeset viewer.