web-platform-tests / wpt

Test suites for Web platform specs — including WHATWG, W3C, and others
https://web-platform-tests.org/
Other
5.03k stars 3.12k forks source link

Remove six and other Python 2+3 compatibility code #28776

Open foolip opened 3 years ago

foolip commented 3 years ago

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.

foolip commented 3 years ago

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

foolip commented 3 years ago

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.