Why not make this public?

This commit is contained in:
Jeremy Fincher 2004-07-29 09:53:13 +00:00
parent 30abebecbe
commit d6faaefa30

View File

@ -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)