Changed the way the plugin name is reported in help.

This commit is contained in:
Jeremy Fincher 2003-10-24 23:14:27 +00:00
parent dd673bc706
commit 39349302a6

View File

@ -122,7 +122,7 @@ def getHelp(method, name=None):
if name is None:
name = method.__name__
doclines = method.__doc__.splitlines()
s = '%s %s %s' % (method.im_self.name(), name, doclines.pop(0))
s = '%s %s' % (name, doclines.pop(0))
if doclines:
doclines = imap(str.strip, ifilter(None, doclines))
help = ' '.join(doclines)
@ -133,7 +133,7 @@ def getSyntax(method, name=None):
if name is None:
name = method.__name__
doclines = method.__doc__.splitlines()
return '%s %s %s' % (method.im_self.name(), name, doclines[0])
return '%s %s' % (name, doclines[0])
class RateLimiter:
"""This class is used to rate limit replies to certain people, in order to