mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Slight cleanups.
This commit is contained in:
parent
a95f1bc28c
commit
70efdfbea1
@ -171,12 +171,9 @@ for (name, s) in registry._cache.iteritems():
|
||||
registerNetwork(name)
|
||||
|
||||
|
||||
class SpaceSeparatedSetOfChannels(registry.SeparatedListOf):
|
||||
class SpaceSeparatedSetOfChannels(registry.SpaceSeparatedListOf):
|
||||
List = ircutils.IrcSet
|
||||
Value = ValidChannel
|
||||
def splitter(self, s):
|
||||
return s.split()
|
||||
joiner = ' '.join
|
||||
|
||||
def removeChannel(self, channel):
|
||||
removals = []
|
||||
|
@ -444,11 +444,13 @@ class SeparatedListOf(Value):
|
||||
# config parser doesn't care about this space, we'll use it :)
|
||||
return ' '
|
||||
|
||||
class SpaceSeparatedListOfStrings(SeparatedListOf):
|
||||
Value = String
|
||||
class SpaceSeparatedListOf(SeparatedListOf):
|
||||
def splitter(self, s):
|
||||
return s.split()
|
||||
joiner = ' '.join
|
||||
|
||||
class SpaceSeparatedListOfStrings(SpaceSeparatedListOf):
|
||||
Value = String
|
||||
|
||||
class CommaSeparatedListOfStrings(SeparatedListOf):
|
||||
Value = String
|
||||
@ -456,9 +458,6 @@ class CommaSeparatedListOfStrings(SeparatedListOf):
|
||||
return re.split(r'\s*,\s*', s)
|
||||
joiner = ', '.join
|
||||
|
||||
class CommaSeparatedSetOfStrings(CommaSeparatedListOfStrings):
|
||||
List = sets.Set
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
#if 1:
|
||||
|
Loading…
Reference in New Issue
Block a user