[schema] Make syntax compatible with print_function
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 10 Jul 2015 09:35:52 +0200
changeset 10531 51261952d068
parent 10530 9d1bb0872e11
child 10532 2cc74c688eb9
[schema] Make syntax compatible with print_function yams seems to exec() us sometimes (instead of __import__()), and yams.reader uses print_function nowadays.
schema.py
--- a/schema.py	Thu Jul 09 17:03:50 2015 +0200
+++ b/schema.py	Fri Jul 10 09:35:52 2015 +0200
@@ -657,7 +657,7 @@
     groups = self.get_groups(action)
     if _cw.user.matching_groups(groups):
         if DBG:
-            print 'check_perm: %r %r: user matches %s' % (action, _self_str, groups)
+            print ('check_perm: %r %r: user matches %s' % (action, _self_str, groups))
         return
     # if 'owners' in allowed groups, check if the user actually owns this
     # object, if so that's enough