Skip to content

Commit 0672a2d

Browse files
committed
fixed an enconding bug when checking for gs version
1 parent 926bddc commit 0672a2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def checkdep_ghostscript():
341341
stderr=subprocess.PIPE)
342342
stdout, stderr = s.communicate()
343343
if s.returncode == 0:
344-
v = stdout[:-1]
344+
v = stdout[:-1].decode('ascii')
345345
return gs_exec, v
346346

347347
return None, None

0 commit comments

Comments
 (0)