pylint cleanups

This commit is contained in:
James Vega 2004-08-11 12:57:52 +00:00
parent 3e1be1858b
commit efb7891f46
3 changed files with 12 additions and 11 deletions

View File

@ -96,7 +96,7 @@ class Channel(callbacks.Privmsg):
channel limit. <channel> is only necessary if the message isn't sent channel limit. <channel> is only necessary if the message isn't sent
in the channel itself. in the channel itself.
""" """
limit = privmsg.getArgs(args) limit = privmsgs.getArgs(args)
try: try:
limit = int(limit) limit = int(limit)
if limit < 0: if limit < 0:

View File

@ -241,7 +241,8 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
self.log.error('Error loading src/ plugin %s. ' self.log.error('Error loading src/ plugin %s. '
'This is usually rather ' 'This is usually rather '
'serious; these plugins are ' 'serious; these plugins are '
'almost always be loaded.', s) 'almost always be loaded.',
name)
except Exception, e: except Exception, e:
log.exception('Failed to load %s:', name) log.exception('Failed to load %s:', name)

View File

@ -426,7 +426,7 @@ class RichReplyMethods(object):
else: else:
log.warning('Denying %s for some unspecified capability ' log.warning('Denying %s for some unspecified capability '
'(or a default)', self.msg.prefix) '(or a default)', self.msg.prefix)
v = conf.supybot.replies.genericNoCapability.get(msg.args[0])() v = conf.supybot.replies.genericNoCapability.get(self.msg.args[0])()
self.error(self.__makeReply(v, s), **kwargs) self.error(self.__makeReply(v, s), **kwargs)
def errorPossibleBug(self, s='', **kwargs): def errorPossibleBug(self, s='', **kwargs):