Use items() intead of iteritems() because we're deleting from the dictionary.

This commit is contained in:
Jeremy Fincher 2003-12-03 21:54:18 +00:00
parent 8cbcb2e225
commit e23bf4167b
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ class Alias(callbacks.Privmsg):
def __call__(self, irc, msg):
# Adding the aliases requires an Irc. So the first time we get called
# with an Irc, we add our aliases and then delete ourselves :)
for (name, (alias, locked)) in self.aliases.iteritems():
for (name, (alias, locked)) in self.aliases.items():
try:
self.addAlias(irc, name, alias, locked)
except Exception, e: