summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2004-08-04 22:28:16 (GMT)
committerFred Drake <fdrake@acm.org>2004-08-04 22:28:16 (GMT)
commit283b670f6bd9c00faa12fbf9f7c97abc79c73dcd (patch)
tree924d98c98700e97220e714d6928f56ca7501d197 /Modules/pyexpat.c
parent9b625d3037815a6753fca21ad19711a92bebec54 (diff)
downloadcpython-283b670f6bd9c00faa12fbf9f7c97abc79c73dcd.zip
cpython-283b670f6bd9c00faa12fbf9f7c97abc79c73dcd.tar.gz
cpython-283b670f6bd9c00faa12fbf9f7c97abc79c73dcd.tar.bz2
add constants for many error values added over the past couple of
years
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r--Modules/pyexpat.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 58ffd23..23d0e2d 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -1937,6 +1937,23 @@ MODULE_INITFUNC(void)
MYCONST(XML_ERROR_UNCLOSED_CDATA_SECTION);
MYCONST(XML_ERROR_EXTERNAL_ENTITY_HANDLING);
MYCONST(XML_ERROR_NOT_STANDALONE);
+ MYCONST(XML_ERROR_UNEXPECTED_STATE);
+ MYCONST(XML_ERROR_ENTITY_DECLARED_IN_PE);
+ MYCONST(XML_ERROR_FEATURE_REQUIRES_XML_DTD);
+ MYCONST(XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING);
+ /* Added in Expat 1.95.7. */
+ MYCONST(XML_ERROR_UNBOUND_PREFIX);
+ /* Added in Expat 1.95.8. */
+ MYCONST(XML_ERROR_UNDECLARING_PREFIX);
+ MYCONST(XML_ERROR_INCOMPLETE_PE);
+ MYCONST(XML_ERROR_XML_DECL);
+ MYCONST(XML_ERROR_TEXT_DECL);
+ MYCONST(XML_ERROR_PUBLICID);
+ MYCONST(XML_ERROR_SUSPENDED);
+ MYCONST(XML_ERROR_NOT_SUSPENDED);
+ MYCONST(XML_ERROR_ABORTED);
+ MYCONST(XML_ERROR_FINISHED);
+ MYCONST(XML_ERROR_SUSPEND_PE);
PyModule_AddStringConstant(errors_module, "__doc__",
"Constants used to describe error conditions.");