Skip to content

Commit

Permalink
backend_ps: fix non-ascii in path similar to #7715
Browse files Browse the repository at this point in the history
  • Loading branch information
tomspur committed Feb 5, 2017
1 parent 9e05890 commit d89c25a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/matplotlib/backends/backend_ps.py
Expand Up @@ -84,8 +84,7 @@ def gs_version(self):
pass

from matplotlib.compat.subprocess import Popen, PIPE
s = Popen(self.gs_exe + " --version",
shell=True, stdout=PIPE)
s = Popen([str(self.gs_exe), " --version"], stdout=PIPE)
pipe, stderr = s.communicate()
if six.PY3:
ver = pipe.decode('ascii')
Expand Down

0 comments on commit d89c25a

Please sign in to comment.