Anthony Sottile <asott...@umich.edu> added the comment:
I threw together a flake8 plugin which checks for these usage patterns: https://github.com/asottile/flake8-2020 | Code | Description | |--------|-------------------------------------------------| | YTT101 | `sys.version[:...]` referenced (python3.10) | | YTT102 | `sys.version[2]` referenced (python3.10) | | YTT201 | `sys.version_info[0] == 3` referenced (python4) | | YTT202 | `six.PY3` referenced (python4) | | YTT301 | `sys.version[0]` referenced (python10) | ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37636> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com