mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Removed unused module from hooks.py
This commit is contained in:
+1
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user