diff options
author | Eli Bendersky <eliben@gmail.com> | 2012-06-01 08:32:34 (GMT) |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2012-06-01 08:32:34 (GMT) |
commit | 2b6b73e7e1a9d13545bea9636936ce5d3e1a87df (patch) | |
tree | 821b6042eb5a92d2cbda4931dc4515b0fa3d4348 /Modules/pyexpat.c | |
parent | 20d4174b3d211609c774bd0711dcbc1793f146aa (diff) | |
download | cpython-2b6b73e7e1a9d13545bea9636936ce5d3e1a87df.zip cpython-2b6b73e7e1a9d13545bea9636936ce5d3e1a87df.tar.gz cpython-2b6b73e7e1a9d13545bea9636936ce5d3e1a87df.tar.bz2 |
Issue #14007: implement doctype() method calling in XMLParser of _elementtree.
Includes exposing a doctype handler from expat through pyexpat.
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r-- | Modules/pyexpat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index fb02329..a500a1e 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -1904,6 +1904,7 @@ MODULE_INITFUNC(void) capi.SetProcessingInstructionHandler = XML_SetProcessingInstructionHandler; capi.SetUnknownEncodingHandler = XML_SetUnknownEncodingHandler; capi.SetUserData = XML_SetUserData; + capi.SetStartDoctypeDeclHandler = XML_SetStartDoctypeDeclHandler; /* export using capsule */ capi_object = PyCapsule_New(&capi, PyExpat_CAPSULE_NAME, NULL); |