Bug report
There's several places that have compatibility code for EOL and unsupported Python versions.
We can modernise the code by removing the obsolete bits.
I'll open separate PRs to keep the changes focused by area, and intend to use this meta issue for them all (but can also open separate issues if preferred).
Linked PRs