Update web-platform-tests to revision 213a7607e8d6ba44d88f1774319e6c1c82ab1ccb

This commit is contained in:
WPT Sync Bot 2020-01-15 08:23:11 +00:00
parent 95614f57f1
commit 8903de3c76
119 changed files with 1456 additions and 594 deletions

View file

@ -43,6 +43,21 @@ The wptserver implements a number of Python APIs for controlling traffic.
/tools/wptserve/docs/stash
```
### Python3 compatibility
Even though Python3 is not fully supported at this point, some work is being
done to add compatibility for it. This is why you can see in multiple places
the use of the `six` python module which is meant to provide a set of simple
utilities that work for both generation of python (see
[docs](https://six.readthedocs.io/)). The module is vendored in
tools/third_party/six/six.py.
When an handler is added, it should be at least syntax-compatible with Python3.
You can check that by running:
```
python3 -m py_compile <path/to/handler.py>
```
## Example: Dynamic HTTP headers
The following code defines a Python handler that allows the requester to