Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "Fix for the issue #1280"

This reverts commit ca0aea6.
  • Loading branch information...
commit 54ed5ed469ff04351bfe550a6c8d49e62c535e6c 1 parent cdb7007
@kennethreitz authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 requests/sessions.py
View
6 requests/sessions.py
@@ -251,8 +251,7 @@ def request(self, method, url,
hooks=None,
stream=None,
verify=None,
- cert=None,
- return_response=True):
+ cert=None):
"""Constructs a :class:`Request <Request>`, prepares it and sends it.
Returns :class:`Response <Response>` object.
@@ -340,9 +339,6 @@ def request(self, method, url,
req.cookies = cookies
req.hooks = hooks
- if not return_response:
- return req
-
# Prepare the Request.
prep = req.prepare()
Please sign in to comment.
Something went wrong with that request. Please try again.