Code style fix

This commit is contained in:
red-agent 2009-10-04 19:56:07 +03:00
parent c6dd2d6666
commit aea0508221
1 changed files with 4 additions and 5 deletions

View File

@ -62,15 +62,14 @@ class StandardCommonCommands(CommandContainer):
documentation = _(command.extract_documentation())
usage = generate_usage(command)
text = str()
text = []
if documentation:
text += documentation
text.append(documentation)
if command.usage:
text += ('\n\n' + usage) if text else usage
text.append(usage)
return text
return '\n\n'.join(text)
elif all:
for command in self.list_commands():
names = ', '.join(command.names)