From 0672a2d4deee57acadecd2d097e1c12c6601e9d4 Mon Sep 17 00:00:00 2001 From: Vlad Seghete Date: Fri, 4 Oct 2013 12:35:31 -0500 Subject: [PATCH] fixed an enconding bug when checking for gs version --- lib/matplotlib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py index f01bf4f1055b..810c2cde2827 100644 --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init__.py @@ -341,7 +341,7 @@ def checkdep_ghostscript(): stderr=subprocess.PIPE) stdout, stderr = s.communicate() if s.returncode == 0: - v = stdout[:-1] + v = stdout[:-1].decode('ascii') return gs_exec, v return None, None