Made only-syntax return without the parentheses.

This commit is contained in:
Jeremy Fincher 2003-10-24 11:47:45 +00:00
parent 83c0d344bf
commit ff8159c91e

View File

@ -122,11 +122,11 @@ def getHelp(method, name=None):
if name is None:
name = method.__name__
doclines = method.__doc__.splitlines()
s = '(%s %s)' % (name, doclines.pop(0))
s = '%s %s' % (name, doclines.pop(0))
if doclines:
doclines = imap(str.strip, ifilter(None, doclines))
help = ' '.join(doclines)
s = '%s -- %s' % (ircutils.bold(s), help)
s = '(%s) -- %s' % (ircutils.bold(s), help)
return s
def getSyntax(method, name=None):