Added an iteritems to ChannelsDictionary and made it into an IterableMap.

This commit is contained in:
Jeremy Fincher 2003-12-03 05:26:14 +00:00
parent 0f3dcf0c01
commit 890d2a5f4e
1 changed files with 4 additions and 1 deletions

View File

@ -519,7 +519,7 @@ class UsersDB(object):
class ChannelsDictionary(object):
class ChannelsDictionary(utils.IterableMap):
def __init__(self, filename):
self.filename = filename
Set = sets.Set
@ -549,6 +549,9 @@ class ChannelsDictionary(object):
"""Reloads the channel database from its file."""
self.__init__(self.filename)
def iteritems(self):
return self.dict.iteritems()
###
# Later, I might add some special handling for botnet.