[libs/logdog] Small tweaks and add fileno to BasicStream.

This allows basic logdog streams to operate as filehandles to subprocess.

Also fixes a bug in normalize and improves an exception message.

R=hinoka@chromium.org, martiniss@chromium.org

Bug: 909848
Change-Id: I4d34a910d83db51123f700b837141157d8dbe39c
Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-py/+/1512953
Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
Reviewed-by: Ryan Tseng <hinoka@chromium.org>
GitOrigin-RevId: 932668421dd720a45b863f997091938ababdd387
3 files changed
tree: 393d76188f39c45ec4647d7c3d2be8066dfd7f36
  1. tests/
  2. __init__.py
  3. bootstrap.py
  5. stream.py
  6. streamname.py
  7. varint.py