Prepare for encoding changes in Python 3
This is most of the remaining diff for porting to Python 3,
but this also works in Python 2.4 already (even though not
strictly needed).
Individual changes:
1. Encode strings before hashing
Python 3 requires "bytes-like objects". Apparently we can already
do so in Python 2, even though not needed for correctness.
Encode strings before writing to input and decode result after reading
from output or error stream.
Only decode once we are sure that the content is not compressed.
Diff:
Passes make, make check and a full make doc.
Patch on countdown for Nov 27th (note comments on Rietveld).
Patch counted down - please push.
pushed to staging as
Well no, my push has been rejected, so here are the updated hashes: