Minor stylistic changes.

This commit is contained in:
Jeremy Fincher 2004-02-04 15:55:56 +00:00
parent 952aa0e395
commit a7c7cc2841

View File

@ -76,8 +76,7 @@ def close(registry, filename, annotated=True):
for (name, value) in registry.getValues(getChildren=True): for (name, value) in registry.getValues(getChildren=True):
if annotated and \ if annotated and \
hasattr(value,'help') and \ hasattr(value,'help') and \
value.help and \ value.help and value.help not in helpCache:
value.help not in helpCache:
helpCache.add(value.help) helpCache.add(value.help)
lines = textwrap.wrap(value.help) lines = textwrap.wrap(value.help)
for (i, line) in enumerate(lines): for (i, line) in enumerate(lines):
@ -394,7 +393,7 @@ if __name__ == '__main__':
number of seconds the bot will wait between sending messages to the server. number of seconds the bot will wait between sending messages to the server.
""")) """))
supybot.register('plugins') supybot.register('plugins')
supybot.plugins.register('topic') supybot.plugins.register('Topic')
supybot.plugins.topic.register('separator', supybot.plugins.topic.register('separator',
StringSurroundedBySpaces(' || ', """Determines what separator the bot StringSurroundedBySpaces(' || ', """Determines what separator the bot
uses to separate topic entries.""", supplyDefault=True)) uses to separate topic entries.""", supplyDefault=True))