wpt
wpt copied to clipboard
Remove six and other Python 2+3 compatibility code
After https://github.com/web-platform-tests/rfcs/blob/master/rfcs/py_3.md there's some cleanup is possible. Most obvious is the use of six, but there are other things like checking sys.version_info as well.
This is a tracking issue just to link them together for discoverability after the fact.
PRs done soon before I filed this issue: https://github.com/web-platform-tests/wpt/pull/28735 + https://github.com/web-platform-tests/wpt/pull/28740 + https://github.com/web-platform-tests/wpt/pull/28747 + https://github.com/web-platform-tests/wpt/pull/28748
There are pull requests up for all remaining use of six now, with https://github.com/web-platform-tests/wpt/pull/28935 still a draft. I'd like to enably mypy for that code first to trust the change more.
Unfortunately depends on practically unmaintained html5lib to remove six from it.