diff options
| -rwxr-xr-x | repo | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -447,8 +447,7 @@ def run_command(cmd, **kwargs): | |||
| 447 | except UnicodeError: | 447 | except UnicodeError: |
| 448 | print('repo: warning: Invalid UTF-8 output:\ncmd: %r\n%r' % (cmd, output), | 448 | print('repo: warning: Invalid UTF-8 output:\ncmd: %r\n%r' % (cmd, output), |
| 449 | file=sys.stderr) | 449 | file=sys.stderr) |
| 450 | # TODO(vapier): Once we require Python 3, use 'backslashreplace'. | 450 | return output.decode('utf-8', 'backslashreplace') |
| 451 | return output.decode('utf-8', 'replace') | ||
| 452 | 451 | ||
| 453 | # Run & package the results. | 452 | # Run & package the results. |
| 454 | proc = subprocess.Popen(cmd, **kwargs) | 453 | proc = subprocess.Popen(cmd, **kwargs) |
