Author Anthony Sottile
Recipients Anthony Sottile, Philip Dye, ezio.melotti, josh.r, ncoghlan, p-ganssle, rhettinger, scoder, serhiy.storchaka
Date 2019-08-25.00:14:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1566692060.41.0.138808115806.issue37636@roundup.psfhosted.org>
In-reply-to
Content
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)          |
History
Date User Action Args
2019-08-25 00:14:20Anthony Sottilesetrecipients: + Anthony Sottile, rhettinger, ncoghlan, scoder, ezio.melotti, serhiy.storchaka, josh.r, p-ganssle, Philip Dye
2019-08-25 00:14:20Anthony Sottilesetmessageid: <1566692060.41.0.138808115806.issue37636@roundup.psfhosted.org>
2019-08-25 00:14:20Anthony Sottilelinkissue37636 messages
2019-08-25 00:14:20Anthony Sottilecreate