mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Useless imports, a nice little bugz0r, found by PyChecker.
This commit is contained in:
parent
ef007332b5
commit
775b542126
@ -32,10 +32,8 @@
|
||||
__revision__ = "$Id$"
|
||||
|
||||
import re
|
||||
import copy
|
||||
import sets
|
||||
import time
|
||||
import types
|
||||
import textwrap
|
||||
|
||||
import supybot.fix as fix
|
||||
@ -83,7 +81,7 @@ def close(registry, filename, annotated=True, helpOnceOnly=False):
|
||||
fd = utils.transactionalFile(filename)
|
||||
for (name, value) in registry.getValues(getChildren=True):
|
||||
if annotated and hasattr(value,'help') and value.help:
|
||||
if not helpOnceOnly or value.help not in self.helpCache:
|
||||
if not helpOnceOnly or value.help not in helpCache:
|
||||
helpCache.add(value.help)
|
||||
lines = textwrap.wrap(value.help)
|
||||
for (i, line) in enumerate(lines):
|
||||
|
Loading…
Reference in New Issue
Block a user