Skip to content

python.lang: Only match explicitly Python 2 files

Python files where we cannot determine the version number should be assumed to be Python 3, as that is by far the dominant version these days.

This is a follow-up to 2bd455d9 which didn't really work in practice as applications kept picking the Python 2 version by default.

Fixes #336 (closed).

Merge request reports