Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update pyexpat.c
  • Loading branch information
picnixz authored Sep 26, 2025
commit 197dfa7e82c08edccf998edea05ed5c05922b2b4
5 changes: 3 additions & 2 deletions Modules/pyexpat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ set_maximum_amplification(xmlparseobject *self,
}
#endif

#if XML_COMBINED_VERSION >= 20402
#if XML_COMBINED_VERSION >= 20400
/*[clinic input]
@permit_long_summary
@permit_long_docstring_body
Expand Down Expand Up @@ -1246,7 +1246,7 @@ pyexpat_xmlparser_SetBillionLaughsAttackProtectionActivationThreshold_impl(xmlpa
}
#endif

#if XML_COMBINED_VERSION >= 20402
#if XML_COMBINED_VERSION >= 20400
/*[clinic input]
@permit_long_summary
@permit_long_docstring_body
Expand Down Expand Up @@ -2382,6 +2382,7 @@ pyexpat_exec(PyObject *mod)
capi->SetAllocTrackerActivationThreshold = NULL;
capi->SetAllocTrackerMaximumAmplification = NULL;
#endif

/* export using capsule */
PyObject *capi_object = PyCapsule_New(capi, PyExpat_CAPSULE_NAME,
pyexpat_capsule_destructor);
Expand Down
Loading