From d6faaefa30b289e37c0d8d8f5f8229f4a38d1a21 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 29 Jul 2004 09:53:13 +0000 Subject: [PATCH] Why not make this public? --- src/callbacks.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index 091f8d081..72381e81a 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -724,6 +724,10 @@ class CanonicalNameSet(utils.NormalizingSet): def normalize(self, s): return canonicalName(s) +class CanonicalNameDict(utils.InsensitivePreservingDict): + def key(self, s): + return canonicalName(s) + class Disabled(registry.SpaceSeparatedListOf): Value = CanonicalString List = CanonicalNameSet @@ -734,12 +738,8 @@ conf.registerGlobalValue(conf.supybot.commands, 'disabled', to exist.""")) class DisabledCommands(object): - class CanonicalNameDict(utils.InsensitivePreservingDict): - def key(self, s): - return canonicalName(s) - def __init__(self): - self.d = self.CanonicalNameDict() + self.d = CanonicalNameDict() for name in conf.supybot.commands.disabled(): if '.' in name: (plugin, command) = name.split('.', 1)