Files
requests3/requests
Ian Cordasco 52bc2e57c0 Remove the __bool__ and __nonzero__ response methods
Many people expect to be able to say:

    response = make_request(url)

    if response:
        body = response.content

Where the first part should test for whether or not response is None.
Instead, the __bool__ and __nonzero__ methods return response.ok, so if
the response is actually a 4xx or 5xx response, then the user would
expect to get the body of the response.

By removing these methods, we restore the functionality that most users
expect.

Closes #2002
2015-05-04 07:58:04 -05:00
..
2015-05-03 15:16:07 +01:00
2015-05-03 15:47:20 +01:00
2015-04-30 23:54:34 -04:00
2015-02-24 09:44:51 -06:00
2014-08-24 19:46:46 -07:00