mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +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$"
|
__revision__ = "$Id$"
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import copy
|
|
||||||
import sets
|
import sets
|
||||||
import time
|
import time
|
||||||
import types
|
|
||||||
import textwrap
|
import textwrap
|
||||||
|
|
||||||
import supybot.fix as fix
|
import supybot.fix as fix
|
||||||
@ -83,7 +81,7 @@ def close(registry, filename, annotated=True, helpOnceOnly=False):
|
|||||||
fd = utils.transactionalFile(filename)
|
fd = utils.transactionalFile(filename)
|
||||||
for (name, value) in registry.getValues(getChildren=True):
|
for (name, value) in registry.getValues(getChildren=True):
|
||||||
if annotated and hasattr(value,'help') and value.help:
|
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)
|
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):
|
||||||
|
Loading…
Reference in New Issue
Block a user