server/hook.py
changeset 10589 7c23b7de2b8d
parent 10351 91e63306e277
child 10662 10942ed172de
--- a/server/hook.py	Fri Sep 11 14:28:06 2015 +0200
+++ b/server/hook.py	Fri Sep 11 14:52:09 2015 +0200
@@ -248,6 +248,8 @@
 .. autoclass:: cubicweb.server.hook.LateOperation
 .. autoclass:: cubicweb.server.hook.DataOperationMixIn
 """
+from __future__ import print_function
+
 __docformat__ = "restructuredtext en"
 
 from warnings import warn
@@ -331,7 +333,7 @@
                         with cnx.running_hooks_ops():
                             for hook in hooks:
                                 if debug:
-                                    print event, _kwargs, hook
+                                    print(event, _kwargs, hook)
                                 hook()
 
     def get_pruned_hooks(self, cnx, event, entities, eids_from_to, kwargs):