Skip to content

Commit 48f2648

Browse files
vlsdmdboom
authored andcommitted
fixed an enconding bug when checking for gs version
1 parent 06d0144 commit 48f2648

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
@@ -346,7 +346,7 @@ def checkdep_ghostscript():
346346
stderr=subprocess.PIPE)
347347
stdout, stderr = s.communicate()
348348
if s.returncode == 0:
349-
v = stdout[:-1]
349+
v = stdout[:-1].decode('ascii')
350350
return gs_exec, v
351351
except (IndexError, ValueError, OSError):
352352
pass

0 commit comments

Comments
 (0)