summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-05-22 14:07:51 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-05-22 14:07:51 (GMT)
commit66d53fa9ad846a401292eec622a6a98983bed578 (patch)
tree210b779b9e53f5372a645014459aa98145177185 /Modules/pyexpat.c
parent9e62d35e656ff2c8c3343943a9b7b5e5bf39ee2e (diff)
downloadcpython-66d53fa9ad846a401292eec622a6a98983bed578.zip
cpython-66d53fa9ad846a401292eec622a6a98983bed578.tar.gz
cpython-66d53fa9ad846a401292eec622a6a98983bed578.tar.bz2
Issue #16986: ElementTree now correctly parses a string input not only when
an internal XML encoding is UTF-8 or US-ASCII.
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r--Modules/pyexpat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 022b0cb..4750225 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -1937,6 +1937,7 @@ MODULE_INITFUNC(void)
capi.SetUnknownEncodingHandler = XML_SetUnknownEncodingHandler;
capi.SetUserData = XML_SetUserData;
capi.SetStartDoctypeDeclHandler = XML_SetStartDoctypeDeclHandler;
+ capi.SetEncoding = XML_SetEncoding;
/* export using capsule */
capi_object = PyCapsule_New(&capi, PyExpat_CAPSULE_NAME, NULL);