[client] Change idna stub to use python's default

Fix a regression from 690b8ae29be2ca3b4782fa6ad0e7f2454443c38d which broke
select bots running inside docker.

The new stub is still simpler than https://pypi.org/project/idna/ and lighter
weight but much better than ignoring the "xn-" encoding as this was done
previously. As per the project home page:

  This acts as a suitable replacement for the “encodings.idna” module that comes
  with the Python standard library, but only supports the old, deprecated IDNA
  specification (RFC 3490).

In practice, we don't expect to use non-ASCII hostnames, so it's not a big deal
for us.

decode() is required by openssl/x509.py.

TBR=jchinlee@chromium.org
Bug: 916644
Change-Id: Ia999a56b981d943e2f3d942f83e40d40e1bb805b
Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-py/+/1573244
Reviewed-by: Marc-Antoine Ruel <maruel@chromium.org>
Commit-Queue: Marc-Antoine Ruel <maruel@chromium.org>

Cr-Mirrored-From: https://chromium.googlesource.com/infra/luci/luci-py
Cr-Mirrored-Commit: bdc0466c63347280fbd8bc8c30fb07f294200194
1 file changed
tree: 5ad0bfc84fa705a14835e81c9a1a9e314595a288
  1. .gitignore
  2. LICENSE
  3. LUCI_CONTEXT.md
  4. OWNERS
  5. PRESUBMIT.py
  6. README.md
  7. README.py
  8. WATCHLISTS
  9. auth.py
  10. cipd.py
  11. example/
  12. isolate.py
  13. isolate_format.py
  14. isolate_storage.py
  15. isolated_format.py
  16. isolateserver.py
  17. libs/
  18. local_caching.py
  19. proto/
  20. run_isolated.py
  21. swarming.py
  22. tests/
  23. third_party/
  24. tools/
  25. trace_inputs.py
  26. utils/
README.md

LUCI Python Client

This is the Python Client code for LUCI. It's part of the main python repo, and is also mirrored into a standalone client-py repo.

To contribute changes you need to clone the main python repo and then use git cl upload. The client-py repo mirror (which appears in Chromium's third_party directory) cannot be contributed to directly.

License

This project is licensed under Apache v2.0 license. See LICENSE for details.