wpt icon indicating copy to clipboard operation
wpt copied to clipboard

Remove six and other Python 2+3 compatibility code

Open foolip opened this issue 4 years ago • 3 comments

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 avatar May 01 '21 16:05 foolip

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 avatar May 03 '21 09:05 foolip

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.

foolip avatar May 10 '21 12:05 foolip

Unfortunately depends on practically unmaintained html5lib to remove six from it.

Anutrix avatar May 26 '25 13:05 Anutrix