From 04c3348107fb494fd071a03f46baaf1c377c294d Mon Sep 17 00:00:00 2001 From: Jon Severinsson Date: Sat, 13 Apr 2013 01:39:49 +0200 Subject: framework: Treat wglinfo, glxinfo and lspci output as text, not binary data. On Python 3.x this has the side-effect of returning a str instead of a bytes. Reviewed-by: Kenneth Graunke --- framework/core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/core.py b/framework/core.py index 3807cf96..6a3b97a3 100644 --- a/framework/core.py +++ b/framework/core.py @@ -395,7 +395,11 @@ class Environment: def run(self, command): try: p = subprocess.Popen( - command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + command, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + universal_newlines=True + ) (stdout, stderr) = p.communicate() except: return "Failed to run " + command -- cgit v1.2.3