]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - regression-tests/bulktest-report.py
Modernize Python 2 code to get ready for Python 3
[thirdparty/pdns.git] / regression-tests / bulktest-report.py
index f756cca544ae5d38a6e7b61b8e74cd3f9643765d..1340014db4c0f2b9a1034d5906d0b61937761a34 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python
+from __future__ import print_function
 import json, sys
 
 runs = json.load(sys.stdin)
@@ -26,6 +27,6 @@ selected.sort()
 names.discard('tag')
 
 fmt=''.join('%%%ds' % max(15, i+4) for i in [3]+map(len, sorted(names)))
-print fmt % tuple(['tag']+sorted(names))
+print(fmt % tuple(['tag']+sorted(names)))
 for tag, stats in selected:
-       print fmt % tuple([tag] + [stats.get(s) for s in sorted(names)])
+       print(fmt % tuple([tag] + [stats.get(s) for s in sorted(names)]))