8000 Decode error messages from image converters. · matplotlib/matplotlib@6135b14 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6135b14

Browse files
QuLogicnewville
authored andcommitted
Decode error messages from image converters.
They appear as one giant blob right now since they're bytes.
1 parent 0d5d1d5 commit 6135b14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/testing/compare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ def get_file_hash(path, block_size=2 ** 20):
113113
def make_external_conversion_command(cmd):
114114
def convert(old, new):
115115
cmdline = cmd(old, new)
116-
pipe = subprocess.Popen(
117-
cmdline, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
116+
pipe = subprocess.Popen(cmdline, universal_newlines=True,
117+
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
118118
stdout, stderr = pipe.communicate()
119119
errcode = pipe.wait()
120120
if not os.path.exists(new) or errcode:

0 commit comments

Comments
 (0)
0