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 /Include | |
| 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 'Include')
| -rw-r--r-- | Include/pyexpat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/pyexpat.h b/Include/pyexpat.h index 5340ef5fa3..168b5b2ae1 100644 --- a/Include/pyexpat.h +++ b/Include/pyexpat.h @@ -43,6 +43,8 @@ struct PyExpat_CAPI XML_Parser parser, XML_UnknownEncodingHandler handler, void *encodingHandlerData); void (*SetUserData)(XML_Parser parser, void *userData); + void (*SetStartDoctypeDeclHandler)(XML_Parser parser, + XML_StartDoctypeDeclHandler start); /* always add new stuff to the end! */ }; |
