As Elrond points out, we might as well .pop() default_handler

This commit is contained in:
Christopher Allan Webber 2013-04-19 14:25:02 -05:00
parent ff259f6bf3
commit e49b7bf290

View File

@ -364,7 +364,7 @@ def hook_handle(hook_name, *args, **kwargs):
- You need an interface implemented, but only one fit for it
- You need to *do* something, but only one thing needs to do it.
"""
default_handler = kwargs.get('default_handler')
default_handler = kwargs.pop('default_handler', None)
callables = PluginManager().get_hook_callables(hook_name)