Fix up the string types used in hosting services and tests.
Review Request #10202 — Created Oct. 8, 2018 and submitted
Python 2.7 is pretty lenient about mixing and matching string types, but
Python 3.x is not. We had a number of places where we were comparing the
wrong types, or building strings with mixes of byte strings and Unicode
strings, or wrapping strings inbytes()
instead of explicitly encoding
them.This change fixes up all instances of bad string types, ensuring that
tests will pass on Python 3.x (when combined with upcoming changes
needed for hosting service compatibility).
Unit tests pass on Python 2.7 (and on 3.x with upcoming changes).
- Change Summary:
-
Fixed a few additional cases of bad string types.
- Commit:
-
55f43eb82c3d7fe7ba5eb35b71a68cb7c2b1ed773f2549bd0a9bcfb2d13f3e43b9a7dc829b43ffec
- Diff:
-
Revision 2 (+87 -66)
Checks run (2 succeeded)
- Change Summary:
-
Fixed a few more occurrences of bad strings.
- Commit:
-
3f2549bd0a9bcfb2d13f3e43b9a7dc829b43ffec49d7521478986a089c6f115f9075336aa6862eec
- Diff:
-
Revision 3 (+92 -77)