summaryrefslogtreecommitdiffstats
path: root/Modules/expat/xmltok_ns.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-07-14 21:12:35 (GMT)
committerGregory P. Smith <greg@krypto.org>2012-07-14 21:12:35 (GMT)
commit7c6309c6afebecd9cefe7c547b87cf23abcbe2a3 (patch)
tree9852412a7bad47617cd0d42e01d37e3400229b04 /Modules/expat/xmltok_ns.c
parent15810673dc33436cbf8d1a6a6f9622249845b205 (diff)
downloadcpython-7c6309c6afebecd9cefe7c547b87cf23abcbe2a3.zip
cpython-7c6309c6afebecd9cefe7c547b87cf23abcbe2a3.tar.gz
cpython-7c6309c6afebecd9cefe7c547b87cf23abcbe2a3.tar.bz2
Update the embedded copy of the expat XML parser to 2.1.0. It brings
with it a vareity of bug fixes, both security and behavior. See http://www.libexpat.org/ for the list. NOTE: I already backported the expat hash randomization fix in March. Fixes issue #14340.
Diffstat (limited to 'Modules/expat/xmltok_ns.c')
-rw-r--r--Modules/expat/xmltok_ns.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/expat/xmltok_ns.c b/Modules/expat/xmltok_ns.c
index d2f8938..c3b88fd 100644
--- a/Modules/expat/xmltok_ns.c
+++ b/Modules/expat/xmltok_ns.c
@@ -1,3 +1,10 @@
+/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
+ See the file COPYING for copying permission.
+*/
+
+/* This file is included! */
+#ifdef XML_TOK_NS_C
+
const ENCODING *
NS(XmlGetUtf8InternalEncoding)(void)
{
@@ -104,3 +111,5 @@ NS(XmlParseXmlDecl)(int isGeneralTextEntity,
encoding,
standalone);
}
+
+#endif /* XML_TOK_NS_C */