Remove whitespaces and add parenthesis to print statements
Change-Id: I0cab05343b1845f92b4c606e4f2d573faf871103
This commit is contained in:
parent
67b37e99e5
commit
0d290bd349
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue