Make the tests run with Python 3.x.

* build/check.py: Add parentheses around 'print' statement arguments
   so that they work when 'print' is a function.

git-svn-id: https://svn.apache.org/repos/asf/serf/trunk@1833223 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/build/check.py b/build/check.py
index 7528701..e05760f 100755
--- a/build/check.py
+++ b/build/check.py
@@ -52,16 +52,16 @@
 
   # Find test responses and run them one by one
   for case in glob.glob(testdir + "/testcases/*.response"):
-    print "== Testing %s ==" % (case)
+    print("== Testing %s ==" % (case))
     try:
       subprocess.check_call([SERF_RESPONSE_EXE, case])
-    except subprocess.CalledProcessError, x:
-      print "ERROR: test failed in '%s', exit code=%d" % (x.cmd, x.returncode)
+    except subprocess.CalledProcessError as x:
+      print("ERROR: test failed in '%s', exit code=%d" % (x.cmd, x.returncode))
       sys.exit(1)
 
-  print "== Running the unit tests =="
+  print("== Running the unit tests ==")
   try:
     subprocess.check_call(TEST_ALL_EXE)
-  except subprocess.CalledProcessError, x:
-    print "ERROR: test(s) failed in '%s', exit code=%d" % (x.cmd, x.returncode)
+  except subprocess.CalledProcessError as x:
+    print("ERROR: test(s) failed in '%s', exit code=%d" % (x.cmd, x.returncode))
     sys.exit(1)