Commit a1acf253 authored by cclauss's avatar cclauss Committed by GitHub

print() function and lose the semicolons (;)

parent 067543cd
...@@ -17,11 +17,12 @@ detailed test results. It runs as the last step before the Jenkins build ...@@ -17,11 +17,12 @@ detailed test results. It runs as the last step before the Jenkins build
finishes. finishes.
""" """
import os; import os
import sys; import sys
from yattag import Doc from yattag import Doc
from collections import defaultdict from collections import defaultdict
def readtests(basedir): def readtests(basedir):
tests = defaultdict(dict) tests = defaultdict(dict)
...@@ -68,6 +69,7 @@ def readtests(basedir): ...@@ -68,6 +69,7 @@ def readtests(basedir):
return ret return ret
def genxml(tests): def genxml(tests):
doc, tag, text = Doc().tagtext() doc, tag, text = Doc().tagtext()
...@@ -86,6 +88,7 @@ def genxml(tests): ...@@ -86,6 +88,7 @@ def genxml(tests):
return doc.getvalue() return doc.getvalue()
sys.stderr.write("make_test_output.py: writing XML from directory: " + sys.stderr.write("make_test_output.py: writing XML from directory: " +
sys.argv[1] + "\n"); sys.argv[1] + "\n")
print genxml(readtests(sys.argv[1])) print(genxml(readtests(sys.argv[1])))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment