Reland "Reland Migrate to python 3.11 from 3.8"

This is a reland of commit ae42a262c8c615956b14ae6de6181a7e09239ad7

The CL was reverted as it caused devices to hang when running tests
on android. (https://github.com/python/cpython/issues/106883)

This has been fixed with a patch that fixed a bug in the python
3.11 interpreter.

https://chromium-review.googlesource.com/c/infra/infra/+/6155095

And then rolling out that change to depot_tools:
https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6158273

Original change's description:
> Reland Migrate to python 3.11 from 3.8
>
> Original CL: https://chromium-review.googlesource.com/c/chromium/src/+/5872818
> was reverted and was not able to create an actual reland because of
> rebase merge failure with "create reland" button.
>
> Previous CL was reverted from failing:
> chromeos-jacuzzi-rel
> chromeos-octopus-rel
>
> This is from a incompatibility in aioquic, which is now fixed with
> an update to aioquick 1.2 (and its supporting libraries) as well as
> adding python and permission changes to chromeos.
>
> crrev.com/5904256
> crrev.com/5904734
>
> and some internal changes.
>
> The webtransport_h3_server.py file has to be changed here with the
> vpython change, and then wpt can be rolled. The change is already
> in the wpt repo, but has been manually excluded in the roll.
>
> Bug: 40942322
> Change-Id: Id12b7085fbc1ffd7694712013e6f746e65c3499f
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5887447
> Reviewed-by: Ben Pastene <bpastene@chromium.org>
> Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
> Commit-Queue: Benjamin Joyce (Ben) <bjoyce@chromium.org>
> Reviewed-by: Jonathan Lee <jonathanjlee@google.com>
> Cr-Commit-Position: refs/heads/main@{#1370866}

Bug: 40942322
Change-Id: Icce4762639fa96104f81c114e853f8069c95cf85
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6168586
Reviewed-by: Jonathan Lee <jonathanjlee@google.com>
Reviewed-by: mmenke <mmenke@chromium.org>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Benjamin Joyce (Ben) <bjoyce@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1410521}
NOKEYCHECK=True
GitOrigin-RevId: a5a4a98193eb652c177610afe10024cad1a17885
1 file changed