kennethreitz/requests — pull request #876 by sigmavirus24 (2012-10-01 17:13:58+00:00)
Title: Only register callable items in lists

Prior to this, you could sneak a list of anything to register_hook and it
would accept it. This will check if the items in the list are callable before
registering them. Also added a regression test to make sure if this gets
changed it will be noticed.