Merge pull request #2775 from ueg1990/remove_unused_module

Removed unused module from hooks.py
This commit is contained in:
Cory Benfield
2015-09-13 13:26:05 +01:00
+1 -4
View File
@@ -12,11 +12,8 @@ Available hooks:
The response generated from a Request.
"""
from collections import defaultdict
HOOKS = ['response']
def default_hooks():
return dict((event, []) for event in HOOKS)
@@ -34,4 +31,4 @@ def dispatch_hook(key, hooks, hook_data, **kwargs):
_hook_data = hook(hook_data, **kwargs)
if _hook_data is not None:
hook_data = _hook_data
return hook_data
return hook_data