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