]> granicus.if.org Git - python/commit
set_error(): Handle construction of pyexpat.error exceptions. They
authorFred Drake <fdrake@acm.org>
Thu, 8 Feb 2001 15:39:08 +0000 (15:39 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 8 Feb 2001 15:39:08 +0000 (15:39 +0000)
commit85d835f0abb78584c150a8d205264d60f2be58fe
treeb57d9b9ba77162ac5c164092e461fdeec0f62155
parent5c734e8165fa67f10c9f8d8498be9a330459d4fb
set_error():  Handle construction of pyexpat.error exceptions.  They
              now carry a 'code' attribute that gives the Expat error
              number.

Added support for additional handlers for Expat 1.95.*, including
XmlDeclHandler, EntityDeclHandler, ElementDeclHandler, and
AttlistDeclHandler.  Associated constants are in the 'model'
sub-object.

Added two new attributes to the parser object: ordered_attributes and
specified_attributes.  These are used to control how attributes are
reported and which attributes are reported.
Modules/pyexpat.c