Browse Source

Tests/Server: import print_function from the future

This makes the output much more readable.

Suggested-by: Matt Soucy
Ben Boeckel 8 years ago
parent
commit
a8f04a6f9c
2 changed files with 4 additions and 2 deletions
  1. 3 2
      Tests/Server/cmakelib.py
  2. 1 0
      Tests/Server/server-test.py

+ 3 - 2
Tests/Server/cmakelib.py

@@ -1,3 +1,4 @@
+from __future__ import print_function
 import sys, subprocess, json
 
 termwidth = 150
@@ -13,8 +14,8 @@ def ordered(obj):
     return obj
 
 def col_print(title, array):
-  print
-  print
+  print()
+  print()
   print(title)
 
   indentwidth = 4

+ 1 - 0
Tests/Server/server-test.py

@@ -1,3 +1,4 @@
+from __future__ import print_function
 import sys, cmakelib, json, os, shutil
 
 debug = True