Remove Python 2 backwards compatibility workarounds and mark the package
as Python 3 only. Python 3.6 is now set as the minimum supported Python
version.
Python 3.4 was marked as the lowest supported version per package
classifiers, though whether this was still the case hasn't been checked;
the CI workflow for the original repo hasn't run tests on Python 3.4
since December 2020.
Also make the Python code more idiomatic by running it through pyupgrade --py36-plus. This was done in a separate commit.
Remove Python 2 backwards compatibility workarounds and mark the package as Python 3 only. Python 3.6 is now set as the minimum supported Python version.
Python 3.4 was marked as the lowest supported version per package classifiers, though whether this was still the case hasn't been checked; the CI workflow for the original repo hasn't run tests on Python 3.4 since December 2020.
Also make the Python code more idiomatic by running it through
pyupgrade --py36-plus
. This was done in a separate commit.