# HG changeset patch # User Julien Cristau # Date 1436513752 -7200 # Node ID 51261952d068c4b88259958ca174175fdd53a91a # Parent 9d1bb0872e11ef5301d7237f6e1b8c24bef84571 [schema] Make syntax compatible with print_function yams seems to exec() us sometimes (instead of __import__()), and yams.reader uses print_function nowadays. diff -r 9d1bb0872e11 -r 51261952d068 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