Skip to content

Commit 36b4b44

Browse files
committed
backend_ps: fix non-ascii in path similar to #7715
1 parent 5c98ad5 commit 36b4b44

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/backends/backend_ps.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ def gs_version(self):
8484
pass
8585

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

0 commit comments

Comments
 (0)