elifesciences / elife-tools

Python library for parsing eLife article XML data.
MIT License
15 stars 7 forks source link

Python 3.8 compatibility improvements #382

Closed gnott closed 2 years ago

gnott commented 2 years ago

Re issue https://github.com/elifesciences/issues/issues/7490

In Python 3.8, ElementTree.XMLParser() no longer accepts the html argument.

There are also changes in Python 3.8 in ElementTree and minidom where the order of XML tag attributes are "retained", instead of being automatically alphabetised in Python 3.6 and earlier, and this requires the test fixtures and scenarios to be adjusted to support both pre- and post- version 3.8 for now. Any library dependinig on elifetools may also generate a different tag attribute order in XML output.