From 775b5421268b67d8d54b97fdeab3c4c6cff078fe Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 11 Aug 2004 07:30:43 +0000 Subject: [PATCH] Useless imports, a nice little bugz0r, found by PyChecker. --- src/registry.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/registry.py b/src/registry.py index 5912a6e45..bd7209e0b 100644 --- a/src/registry.py +++ b/src/registry.py @@ -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):