Skip to content
Myr

Merge pull request #2775 from ueg1990/remove_unused_module

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Removed unused module from hooks.py

authored by Cory Benfield · committed by Cory Benfield · parents 9d69c78, 649aeaa · Browse files · 1 file+1 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−4 removed

  • other:+1 added−4 removed

1 file+1 added−4 removed

modified:requests/hooks.py+1 added-4 removed
10 unmodified lines
11``response``:12 The response generated from a Request.1314"""15from collections import defaultdict1615HOOKS = ['response']161917def default_hooks():18 return dict((event, []) for event in HOOKS)1920# TODO: response is the only one
9 unmodified lines
30 for hook in hooks:31 _hook_data = hook(hook_data, **kwargs)32 if _hook_data is not None:33 hook_data = _hook_data37 return hook_data34 return hook_data