Fix formatting of mercurial revisions with Python 3.8

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

david
RBTools
release-2.0.x
rbtools

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.
Summary
Fix formatting of mercurial revisions with Python 3.8
chipx86
  1. Ship It!
  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.0.x (959a547)
Loading...