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: if name is None:
name = method.__name__ name = method.__name__
doclines = method.__doc__.splitlines() doclines = method.__doc__.splitlines()
s = '(%s %s)' % (name, doclines.pop(0)) s = '%s %s' % (name, doclines.pop(0))
if doclines: if doclines:
doclines = imap(str.strip, ifilter(None, doclines)) doclines = imap(str.strip, ifilter(None, doclines))
help = ' '.join(doclines) help = ' '.join(doclines)
s = '%s -- %s' % (ircutils.bold(s), help) s = '(%s) -- %s' % (ircutils.bold(s), help)
return s return s
def getSyntax(method, name=None): def getSyntax(method, name=None):