mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
This commit is contained in:
commit
c3324f9fe1
@ -314,7 +314,7 @@ class MozbuildObject(object):
|
||||
def handleLine(line):
|
||||
# Converts str to unicode on Python 2 and bytes to str on Python 3.
|
||||
if isinstance(line, bytes):
|
||||
line = line.decode(sys.stdout.encoding)
|
||||
line = line.decode(sys.stdout.encoding or 'utf-8', 'replace')
|
||||
|
||||
if line_handler:
|
||||
line_handler(line)
|
||||
|
Loading…
Reference in New Issue
Block a user