This is an archive of the discontinued LLVM Phabricator instance.

[LNT] Python 3 support: adapt XML parsing with extra entities
ClosedPublic

Authored by thopre on Oct 15 2019, 7:14 AM.

Details

Summary

Test server/ui/V4Pages.py parses XML with non standard entities using
the ElementTree's XML parser. However the method it uses to declare the
non standard entities are no longer available in Python 3's ElementTree.
This commit instead modifies the DOCTYPE element in the XML directly
before passing it to ElementTree's XML parser.