]> granicus.if.org Git - python/commitdiff
Remove the old version of my_StartElementHandler(). This was conditionally
authorFred Drake <fdrake@acm.org>
Fri, 16 Feb 2001 20:46:26 +0000 (20:46 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 16 Feb 2001 20:46:26 +0000 (20:46 +0000)
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.

Modules/pyexpat.c

index b4634c82c4a6ce414d89f833561769191a2bce7e..4f773517f887b7a6850e82f141bd19e9f8ca24e4 100644 (file)
@@ -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))