Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5aafaa4

Browse files
committed
Decode error messages from image converters.
They appear as one giant blob right now since they're bytes.
1 parent 7131876 commit 5aafaa4

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)