summaryrefslogtreecommitdiff
path: root/Modules/pyexpat.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-02-16 20:46:26 +0000
committerFred Drake <fdrake@acm.org>2001-02-16 20:46:26 +0000
commite08a72a5cc5f3b5fe646c02e2d6fbabb205f1758 (patch)
treec49e1207b19f3b9f910b0cdbc9454f3ce7e87a0d /Modules/pyexpat.c
parent0a1a3ce7a8d3d3be5df9f89d890155f51f67a93c (diff)
downloadcpython-e08a72a5cc5f3b5fe646c02e2d6fbabb205f1758.tar.gz
Remove the old version of my_StartElementHandler(). This was conditionally
compiled only for some versions of Expat, but was no longer needed as the new implementation works for all versions. Keeping it created multiple definitions for Expat 1.2, which caused compilation to fail.
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r--Modules/pyexpat.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index b4634c82c4..4f773517f8 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -497,23 +497,6 @@ my_##NAME##Handler PARAMS {\
rc = PyInt_AsLong(rv);, rc, \
(xmlparseobject *)userData)
-#if EXPAT_VERSION == 0x010200
-#if PY_MAJOR_VERSION == 1 && PY_MINOR_VERSION < 6
-VOID_HANDLER(StartElement,
- (void *userData, const XML_Char *name, const XML_Char **atts),
- ("(O&O&)", STRING_CONV_FUNC, name,
- conv_atts_using_string, atts))
-#else
-/* Python 1.6 and later */
-VOID_HANDLER(StartElement,
- (void *userData, const XML_Char *name, const XML_Char **atts),
- ("(O&O&)", STRING_CONV_FUNC, name,
- (self->returns_unicode
- ? conv_atts_using_unicode
- : conv_atts_using_string), atts))
-#endif
-#endif
-
VOID_HANDLER(EndElement,
(void *userData, const XML_Char *name),
("(O&)", STRING_CONV_FUNC, name))