diff -r fdaa0e4b7eaf -r 7c23b7de2b8d server/hook.py --- 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):