Remove checks for PY_MAJOR_VERSION >= 3

Most support for Python 2 was removed in commit 77c95cc2, but PY_MAJOR_VERSION is still being checked in a few places.

Merge request reports

Loading