Fix rbt patch --print on Python 3.

Review Request #10140 — Created Sept. 6, 2018 and submitted — Latest diff uploaded

Information

RBTools
release-1.0.x
5e8abbc...

Reviewers

On Python 3, the data returned from the API is a byte array, not a
Unicode string. As such, it has to be decoded before it can be passed to
the print() function. Otherwise, the print() function will print the
representation of the byte array. See the bug for details.

  • Ran rbt patch --print under Python 2.7 and 3.6.
  • Ran rbt patch without --print under Python 2.7 and 3.6.
  • Ran unit tests under Python 2.7 and 3.6.