On Python 3.x this has the side-effect of returning a str instead of a bytes.
---
 framework/core.py |    6 +++++-
 1 fil ändrad, 5 tillägg(+), 1 borttagning(-)

diff --git a/framework/core.py b/framework/core.py
index 4fc9a2f..2a3bffa 100644
--- a/framework/core.py
+++ b/framework/core.py
@@ -400,7 +400,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
-- 
1.7.10.4

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to