mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Added an iteritems to ChannelsDictionary and made it into an IterableMap.
This commit is contained in:
parent
0f3dcf0c01
commit
890d2a5f4e
@ -519,7 +519,7 @@ class UsersDB(object):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ChannelsDictionary(object):
|
class ChannelsDictionary(utils.IterableMap):
|
||||||
def __init__(self, filename):
|
def __init__(self, filename):
|
||||||
self.filename = filename
|
self.filename = filename
|
||||||
Set = sets.Set
|
Set = sets.Set
|
||||||
@ -549,6 +549,9 @@ class ChannelsDictionary(object):
|
|||||||
"""Reloads the channel database from its file."""
|
"""Reloads the channel database from its file."""
|
||||||
self.__init__(self.filename)
|
self.__init__(self.filename)
|
||||||
|
|
||||||
|
def iteritems(self):
|
||||||
|
return self.dict.iteritems()
|
||||||
|
|
||||||
|
|
||||||
###
|
###
|
||||||
# Later, I might add some special handling for botnet.
|
# Later, I might add some special handling for botnet.
|
||||||
|
Loading…
Reference in New Issue
Block a user