diff options
| author | Eli Bendersky <eliben@gmail.com> | 2012-06-01 11:32:34 +0300 |
|---|---|---|
| committer | Eli Bendersky <eliben@gmail.com> | 2012-06-01 11:32:34 +0300 |
| commit | 030d4a8ae0f1863d73a0482ffc4cd1705a23330a (patch) | |
| tree | 55867ff929b5e8342c054cf89d8be8a258634e37 /Modules/pyexpat.c | |
| parent | a78fac1d74d065e22a3c235635930857ffa129f5 (diff) | |
| download | cpython-030d4a8ae0f1863d73a0482ffc4cd1705a23330a.tar.gz | |
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 fb023298f5..a500a1e25d 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); |
