Remove whitespaces and add parenthesis to print statements
Change-Id: I0cab05343b1845f92b4c606e4f2d573faf871103
This commit is contained in:
@@ -88,8 +88,8 @@ class CheckAccess(irc.client.SimpleIRCClient):
|
|||||||
return
|
return
|
||||||
if msg.endswith('is not registered.'):
|
if msg.endswith('is not registered.'):
|
||||||
self.failed = True
|
self.failed = True
|
||||||
print ("%s is not registered with ChanServ." %
|
print("%s is not registered with ChanServ." %
|
||||||
self.current_channel)
|
self.current_channel)
|
||||||
self.current_channel = None
|
self.current_channel = None
|
||||||
self.advance()
|
self.advance()
|
||||||
return
|
return
|
||||||
@@ -103,10 +103,10 @@ class CheckAccess(irc.client.SimpleIRCClient):
|
|||||||
break
|
break
|
||||||
if not found:
|
if not found:
|
||||||
self.failed = True
|
self.failed = True
|
||||||
print ("%s does not have permissions on %s:" %
|
print("%s does not have permissions on %s:" %
|
||||||
(self.nick, self.current_channel))
|
(self.nick, self.current_channel))
|
||||||
for nick, flags, msg in self.current_list:
|
for nick, flags, msg in self.current_list:
|
||||||
print msg
|
print(msg)
|
||||||
print
|
print
|
||||||
# If this is the first channel checked, set the failure
|
# If this is the first channel checked, set the failure
|
||||||
# flag to false because we know that the system is
|
# flag to false because we know that the system is
|
||||||
|
|||||||
@@ -63,11 +63,11 @@ def access_gerrit_check():
|
|||||||
# gerritbot. If we try connect to more, it will not connect to
|
# gerritbot. If we try connect to more, it will not connect to
|
||||||
# all. Avoid this situation.
|
# all. Avoid this situation.
|
||||||
if len(gerrit_config) > 120:
|
if len(gerrit_config) > 120:
|
||||||
print ("ERROR: gerritbot can only handle 120 channels but found %s."
|
print("ERROR: gerritbot can only handle 120 channels but found %s."
|
||||||
% len(gerrit_config))
|
% len(gerrit_config))
|
||||||
print ("Sorry, we're at our limit and cannot add more for now.")
|
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 "
|
print("If you want to help set up another instance contact the "
|
||||||
"infra team in #openstack-infra.\n")
|
"infra team in #openstack-infra.\n")
|
||||||
errors = True
|
errors = True
|
||||||
|
|
||||||
return errors
|
return errors
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ def validate_jobs():
|
|||||||
count += result
|
count += result
|
||||||
errors = True
|
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
|
return errors
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user