- for cmd, func in self.hooks.iteritems():
- self.parent.hook(cmd, func)
- self.parent.hook("%s.%s" % (self.name, cmd), func)
- for num, func in self.numhooks.iteritems():
- self.parent.hooknum(num, func)
- for chan, func in self.chanhooks.iteritems():
- self.parent.hookchan(chan, func)
+ for cmd, func in self.hooks.items():
+ parent.hook(cmd, func)
+ parent.hook("%s.%s" % (self.name, cmd), func)
+ for num, func in self.numhooks.items():
+ parent.hooknum(num, func)
+ for chan, func in self.chanhooks.items():
+ parent.hookchan(chan, func)
+ for exc, func in self.exceptionhooks:
+ parent.hookexception(exc, func)