Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6bfa31c

Browse files
committed
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.
1 parent fc93b0a commit 6bfa31c

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

Modules/pyexpat.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -497,23 +497,6 @@ my_##NAME##Handler PARAMS {\
497497
rc = PyInt_AsLong(rv);, rc, \
498498
(xmlparseobject *)userData)
499499

500-
#if EXPAT_VERSION == 0x010200
501-
#if PY_MAJOR_VERSION == 1 && PY_MINOR_VERSION < 6
502-
VOID_HANDLER(StartElement,
503-
(void *userData, const XML_Char *name, const XML_Char **atts),
504-
("(O&O&)", STRING_CONV_FUNC, name,
505-
conv_atts_using_string, atts))
506-
#else
507-
/* Python 1.6 and later */
508-
VOID_HANDLER(StartElement,
509-
(void *userData, const XML_Char *name, const XML_Char **atts),
510-
("(O&O&)", STRING_CONV_FUNC, name,
511-
(self->returns_unicode
512-
? conv_atts_using_unicode
513-
: conv_atts_using_string), atts))
514-
#endif
515-
#endif
516-
517500
VOID_HANDLER(EndElement,
518501
(void *userData, const XML_Char *name),
519502
("(O&)", STRING_CONV_FUNC, name))

0 commit comments

Comments
 (0)