From: Luca De Vitis Date: Thu, 25 Aug 2011 14:24:55 +0000 (+0200) Subject: default hooks copy fixed X-Git-Tag: v0.8.0~94^2~4^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=335bf7018d7b073ff9fe3ab68fa92dd12a4c57b8;p=services%2Fpython-requests.git default hooks copy fixed --- diff --git a/requests/hooks/__init__.py b/requests/hooks/__init__.py index 730e6bb..e737bff 100644 --- a/requests/hooks/__init__.py +++ b/requests/hooks/__init__.py @@ -42,7 +42,8 @@ def setup_hooks(supplied): """ # Copy the default hooks settings. - dispatching = dict([(k, v[:]) for k, v in config.settings.default_hooks]) + default = config.settings.default_hooks + dispatching = dict([(k, v[:]) for k, v in default.items()]) # I abandoned the idea of a dictionary of sets because sets may not keep # insertion order, while it may be important. Also, there is no real reason