kennethreitz/requests — pull request #230 by maraujop (2011-10-30 12:24:38+00:00)
Title: Wrong default types for params and data

`params` and `data` are marked as dictionaries in the constructor prototype. However `_encode_params` returns lists or None sometimes.

There is a big inconsistency in `_encode_params` that could affect hooks. It's affecting me in request-oauth-hook. Thus I have to do these type of checkings:
https://github.com/maraujop/requests-oauth-hook/blob/dev/oauth_hook/hook.py#L184

So if params is a dictionary, I understand it should be an empty dictionary or a filled dictionary, but not a list or None. The same happens to data.

I haven't been able to run `requests_tests` sorry, they failed before I did a change to the code. This will likely affect you in other parts of the code.