Fix formatting of mercurial revisions with Python 3.8

Review Request #11135 — Created Aug. 10, 2020 and submitted — Latest diff uploaded

Information

RBTools
release-2.0.x

Reviewers

In Python 3.8, attempting to use formatting on a bytestring with
dictionary parameters will end up looking for the keys as bytestrings
rather than unicode. This results in a KeyError. This change fixes it so
we do the format entirely as str and then encode to bytes.

  • Verified that the encoding worked correctly.
  • Ran unit tests.

Commits

Files

    Loading...