Skip to content

Commit 30fd7a4

Browse files
closes bpo-35184: Fix XML_POOR_ENTROPY option that breaks makesetup parsing of pyexpat line in Setup. (GH-13064)
When the line is uncommented, the equals character causes it to be incorrectly interpreted as a macro definition by makesetup. This results in invalid Makefile output. The expat code only requires XML_POOR_ENTROPY to be defined; the value is unnecessary. (cherry picked from commit 408a2ef) Co-authored-by: aaronpaulhurst <[email protected]>
1 parent 3621bf2 commit 30fd7a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/Setup.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ _symtable symtablemodule.c
340340
# Interface to the Expat XML parser
341341
# More information on Expat can be found at www.libexpat.org.
342342
#
343-
#pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DXML_POOR_ENTROPY=1 -DUSE_PYEXPAT_CAPI
343+
#pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DXML_POOR_ENTROPY -DUSE_PYEXPAT_CAPI
344344

345345
# Hye-Shik Chang's CJKCodecs
346346

0 commit comments

Comments
 (0)