From 35b4bbeec1bde647cbf0da316ef0984f5a23bf00 Mon Sep 17 00:00:00 2001 From: Martyn Alberts Date: Thu, 18 Jul 2019 12:36:41 +0200 Subject: [PATCH] Add brackets around prints --- manage_recipients/manage_recipients.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manage_recipients/manage_recipients.py b/manage_recipients/manage_recipients.py index c6c0b4c..862f90e 100644 --- a/manage_recipients/manage_recipients.py +++ b/manage_recipients/manage_recipients.py @@ -24,7 +24,7 @@ def main(): options, args = opt_args() if not options.user: - print 'Please use:\n %s --user ' % (sys.argv[0]) + print('Please use:\n %s --user ' % (sys.argv[0])) sys.exit(0) user = kopano.Server(options).user(options.user) @@ -50,8 +50,8 @@ def main(): sys.exit(0) if options.list: - print json.dumps(webapp, sort_keys=True, - indent=4, separators=(',', ': ')) + print(json.dumps(webapp, sort_keys=True, + indent=4, separators=(',', ': '))) sys.exit(0) if options.remove: @@ -59,7 +59,7 @@ def main(): for rec in webapp['recipients']: if options.remove in rec['display_name'] or options.remove in rec['smtp_address'] \ or options.remove in rec['email_address']: - print 'removing contact %s [%s]' % (rec['display_name'], rec['smtp_address']) + print('removing contact %s [%s]' % (rec['display_name'], rec['smtp_address'])) else: newlist['recipients'].append(rec)