diff options
| author | Hugo Osvaldo Barrera <hugo@barrera.io> | 2017-05-30 19:24:18 -0300 |
|---|---|---|
| committer | Hugo Osvaldo Barrera <hugo@barrera.io> | 2017-07-14 11:42:32 -0300 |
| commit | ed068ea0afbc094260c2e3e7622f60bce40c327b (patch) | |
| tree | a0ca4bdfa15907ef9d8cb5cb9bd009fb885cde56 /requests/adapters.py | |
| parent | fb9abdda5e83dd567e82749d9ea5900d23fe7508 (diff) | |
| download | python-requests-ed068ea0afbc094260c2e3e7622f60bce40c327b.tar.gz | |
Drop python2.6 support
Diffstat (limited to 'requests/adapters.py')
| -rw-r--r-- | requests/adapters.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/requests/adapters.py b/requests/adapters.py index 779111d5..547d0d76 100644 --- a/requests/adapters.py +++ b/requests/adapters.py @@ -478,11 +478,10 @@ class HTTPAdapter(BaseAdapter): # Receive the response from the server try: - # For Python 2.7+ versions, use buffering of HTTP - # responses + # For Python 2.7, use buffering of HTTP responses r = low_conn.getresponse(buffering=True) except TypeError: - # For compatibility with Python 2.6 versions and back + # For Python 3.3+ versions, this is the default r = low_conn.getresponse() resp = HTTPResponse.from_httplib( |
