Index: pyyaml/trunk/tests3/test_canonical.py
===================================================================
--- pyyaml/trunk/tests/test_canonical.py	(revision 322)
+++ pyyaml/trunk/tests3/test_canonical.py	(revision 328)
@@ -8,5 +8,5 @@
     if verbose:
         for token in tokens:
-            print token
+            print(token)
 
 test_canonical_scanner.unittest = ['.canonical']
@@ -18,5 +18,5 @@
     if verbose:
         for event in events:
-            print event
+            print(event)
 
 test_canonical_parser.unittest = ['.canonical']
@@ -26,7 +26,7 @@
     try:
         output = list(yaml.canonical_load_all(data))
-    except yaml.YAMLError, exc:
+    except yaml.YAMLError as exc:
         if verbose:
-            print exc
+            print(exc)
     else:
         raise AssertionError("expected an exception")
