Communication: sax parser: add flush() after feed() (#556) by thiell · Pull Request #569 · clustershell/clustershell · GitHub
Skip to content

Communication: sax parser: add flush() after feed() (#556)#569

Merged
thiell merged 1 commit into
clustershell:masterfrom
thiell:b193_expat_no_reparse_deferral
Sep 11, 2024
Merged

Communication: sax parser: add flush() after feed() (#556)#569
thiell merged 1 commit into
clustershell:masterfrom
thiell:b193_expat_no_reparse_deferral

Conversation

@thiell

@thiell thiell commented Sep 9, 2024

Copy link
Copy Markdown
Collaborator

This is due to libexpat 2.6 reparse deferral as documented in #556.

Unfortunately ExpatParser doesn't seem to have SetReparseDeferralEnabled(), so we use an explicit flush() call to make sure all handlers are called immediately. We control the source XML.

NOTE: Only available in Python 3.13 and backports.

This is due to libexpat 2.6 reparse deferral as documented in clustershell#556.

Unfortunately ExpatParser doesn't seem to have SetReparseDeferralEnabled(),
so we use an explicit flush() call to make sure all handlers are called
immediately. We control the source XML.

NOTE: Only available in Python 3.13 and backports.
@thiell thiell added this to the 1.9.3 milestone Sep 9, 2024
@thiell thiell self-assigned this Sep 9, 2024
@thiell thiell added the Lib/Tree label Sep 9, 2024
@thiell thiell added this pull request to the merge queue Sep 11, 2024
Merged via the queue into clustershell:master with commit 5c6f17f Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant