From 0d290bd3492b3e068aa8e0ed1051c95515ec0631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Wed, 24 Aug 2016 16:48:09 -0400 Subject: [PATCH] Remove whitespaces and add parenthesis to print statements Change-Id: I0cab05343b1845f92b4c606e4f2d573faf871103 --- tools/check_irc_access.py | 10 +++++----- tools/irc_tests.py | 10 +++++----- tools/jenkins-projects-checks.py | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tools/check_irc_access.py b/tools/check_irc_access.py index 72403d7360..fb6c7c2686 100755 --- a/tools/check_irc_access.py +++ b/tools/check_irc_access.py @@ -88,8 +88,8 @@ class CheckAccess(irc.client.SimpleIRCClient): return if msg.endswith('is not registered.'): self.failed = True - print ("%s is not registered with ChanServ." % - self.current_channel) + print("%s is not registered with ChanServ." % + self.current_channel) self.current_channel = None self.advance() return @@ -103,10 +103,10 @@ class CheckAccess(irc.client.SimpleIRCClient): break if not found: self.failed = True - print ("%s does not have permissions on %s:" % - (self.nick, self.current_channel)) + print("%s does not have permissions on %s:" % + (self.nick, self.current_channel)) for nick, flags, msg in self.current_list: - print msg + print(msg) print # If this is the first channel checked, set the failure # flag to false because we know that the system is diff --git a/tools/irc_tests.py b/tools/irc_tests.py index e98154d161..af31ce74f1 100755 --- a/tools/irc_tests.py +++ b/tools/irc_tests.py @@ -63,11 +63,11 @@ def access_gerrit_check(): # gerritbot. If we try connect to more, it will not connect to # all. Avoid this situation. if len(gerrit_config) > 120: - print ("ERROR: gerritbot can only handle 120 channels but found %s." - % len(gerrit_config)) - print ("Sorry, we're at our limit and cannot add more for now.") - print ("If you want to help set up another instance contact the " - "infra team in #openstack-infra.\n") + print("ERROR: gerritbot can only handle 120 channels but found %s." + % len(gerrit_config)) + print("Sorry, we're at our limit and cannot add more for now.") + print("If you want to help set up another instance contact the " + "infra team in #openstack-infra.\n") errors = True return errors diff --git a/tools/jenkins-projects-checks.py b/tools/jenkins-projects-checks.py index 288b89471c..c70ef864d3 100755 --- a/tools/jenkins-projects-checks.py +++ b/tools/jenkins-projects-checks.py @@ -159,7 +159,7 @@ def validate_jobs(): count += result errors = True - print ("%d errors found validating YAML files in jenkins/jobs/*.yaml.\n" % count) + print("%d errors found validating YAML files in jenkins/jobs/*.yaml.\n" % count) return errors