Merge pull request #6752 from pradyunsg/vendor/html5lib-collections-abc

Better document our patch to html5lib
This commit is contained in:
Pradyun Gedam 2019-07-21 00:08:30 +05:30 committed by GitHub
commit c1eb1d76ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -1 +0,0 @@
Make vendored html5lib compatible with Python 3.9.

View File

@ -0,0 +1 @@
Patch vendored html5lib, to prefer using `collections.abc` where possible.

View File

@ -99,7 +99,8 @@ Modifications
* ``setuptools`` is completely stripped to only keep ``pkg_resources``
* ``pkg_resources`` has been modified to import its dependencies from ``pip._vendor``
* ``packaging`` has been modified to import its dependencies from ``pip._vendor``
* ``html5lib`` has been modified to ``import six from pip._vendor``
* ``html5lib`` has been modified to import six from ``pip._vendor`` and
to prefer importing from ``collections.abc`` instead of ``collections``.
* ``CacheControl`` has been modified to import its dependencies from ``pip._vendor``
* ``requests`` has been modified to import its other dependencies from ``pip._vendor``
and to *not* load ``simplejson`` (all platforms) and ``pyopenssl`` (Windows).