Handle CRLF lines in tool_driver.py
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 3 May 2012 10:15:12 +0000 (11:15 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 3 May 2012 10:15:12 +0000 (11:15 +0100)
tool_driver.py

index 4cbcc374f5c59ec0be4ab224d4a61b82965d8c76..962db1e09b32baf3cfa106e4bfd96e2b85acff62 100755 (executable)
@@ -81,7 +81,7 @@ class ToolDriver(Driver):
         args = refStream.readline().split()
         cmd = [self.options.apitrace] + args
         cwd = os.path.dirname(os.path.abspath(refScript))
-        p = popen(cmd, cwd=cwd, stdout=subprocess.PIPE)
+        p = popen(cmd, cwd=cwd, stdout=subprocess.PIPE, universal_newlines=True)
 
         comparer = AsciiComparer(p.stdout, refStream, self.options.verbose)
         comparer.compare()