mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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)
|
registerNetwork(name)
|
||||||
|
|
||||||
|
|
||||||
class SpaceSeparatedSetOfChannels(registry.SeparatedListOf):
|
class SpaceSeparatedSetOfChannels(registry.SpaceSeparatedListOf):
|
||||||
List = ircutils.IrcSet
|
List = ircutils.IrcSet
|
||||||
Value = ValidChannel
|
Value = ValidChannel
|
||||||
def splitter(self, s):
|
|
||||||
return s.split()
|
|
||||||
joiner = ' '.join
|
|
||||||
|
|
||||||
def removeChannel(self, channel):
|
def removeChannel(self, channel):
|
||||||
removals = []
|
removals = []
|
||||||
|
@ -444,11 +444,13 @@ class SeparatedListOf(Value):
|
|||||||
# config parser doesn't care about this space, we'll use it :)
|
# config parser doesn't care about this space, we'll use it :)
|
||||||
return ' '
|
return ' '
|
||||||
|
|
||||||
class SpaceSeparatedListOfStrings(SeparatedListOf):
|
class SpaceSeparatedListOf(SeparatedListOf):
|
||||||
Value = String
|
|
||||||
def splitter(self, s):
|
def splitter(self, s):
|
||||||
return s.split()
|
return s.split()
|
||||||
joiner = ' '.join
|
joiner = ' '.join
|
||||||
|
|
||||||
|
class SpaceSeparatedListOfStrings(SpaceSeparatedListOf):
|
||||||
|
Value = String
|
||||||
|
|
||||||
class CommaSeparatedListOfStrings(SeparatedListOf):
|
class CommaSeparatedListOfStrings(SeparatedListOf):
|
||||||
Value = String
|
Value = String
|
||||||
@ -456,9 +458,6 @@ class CommaSeparatedListOfStrings(SeparatedListOf):
|
|||||||
return re.split(r'\s*,\s*', s)
|
return re.split(r'\s*,\s*', s)
|
||||||
joiner = ', '.join
|
joiner = ', '.join
|
||||||
|
|
||||||
class CommaSeparatedSetOfStrings(CommaSeparatedListOfStrings):
|
|
||||||
List = sets.Set
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
#if 1:
|
#if 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user