Fix rbt patch to print string output with stdout instead of stdout_bytes

Review Request #12372 — Created June 14, 2022 and updated

rpowell
RBTools
master
4973
rbtools
After applying an SVN patch, attempting to print the output could result in
CRITICAL: a bytes-like object is required, not 'str'
as the patch output was of type str.

This change calls the stdout.write function when patch_output is of type str.

Tested locally with an SVN patch, confirmed the patch could apply successfully.

Summary Author
Fix rbt patch to print string output with stdout instead of stdout_bytes
Bob Powell
Description From Last Updated

Thanks for the patch! This looks like a symptom of a problem. patch_output should always be bytes, or problems can …

chipx86chipx86
rpowell
Review request changed

Testing Done:

  +

Tested locally with an SVN patch, confirmed the patch could apply successfully.

chipx86
  1. 
      
  2. Thanks for the patch!

    This looks like a symptom of a problem. patch_output should always be bytes, or problems can occur elsewhere. It'll be important to find out why these are becoming str instead.

  3. 
      
Loading...