Skip to content
Myr

default hooks copy fixed

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

authored by Luca De Vitis · committed by Luca De Vitis · parent d8fb6d2 · Browse files · 1 file+2 added−1 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/hooks/__init__.py+2 added-1 removed
40 unmodified lines
41 :rtype: dict42 """4344 # Copy the default hooks settings.45 default = config.settings.default_hooks45 dispatching = dict([(k, v[:]) for k, v in config.settings.default_hooks])46 dispatching = dict([(k, v[:]) for k, v in default.items()])4748 # I abandoned the idea of a dictionary of sets because sets may not keep49 # insertion order, while it may be important. Also, there is no real reason50 # to force hooks to run once.
47 unmodified lines