Skip to content
Myr

Merge pull request #2514 from kennethreitz/revert-2513-master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Revert "Minor Patch TypeError thrown"

authored by Cory Benfield · committed by Cory Benfield · parents a0f5776, b2ce5be · Browse files · 2 files+3 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−10 removed

  • other:+3 added−10 removed

2 files+3 added−10 removed

modified:requests/packages/urllib3/connectionpool.py+2 added-8 removed
309 unmodified lines
310311 # Catch possible read timeouts thrown as SSL errors. If not the312 # case, rethrow the original. We need to do this because of:313 # http://bugs.python.org/issue10272314 # Wrapped in a try/catch because python 2.7 throws TypeError,315 # SSLError doesn't override __str__316 try:317 if 'timed out' in str(err) or 'did not complete (read)' in str(err): # Python 2.6318 raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)314 if 'timed out' in str(err) or 'did not complete (read)' in str(err): # Python 2.6315 raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)319 except TypeError:320 raise err316322317 def _make_request(self, conn, method, url, timeout=_Default,318 **httplib_request_kw):319 """320 Perform a request on a given urllib connection object taken from our
476 unmodified lines
modified:AUTHORS.rst+1 added-2 removed
158 unmodified lines
159- Syed Suhail Ahmed <ssuhail.ahmed93@gmail.com> (`@syedsuhail <https://github.com/syedsuhail>`_)160- Scott Sadler (`@ssadler <https://github.com/ssadler>`_)161- Arthur Darcet (`@arthurdarcet <https://github.com/arthurdarcet>`_)162- Ulrich Petri (`@ulope <https://github.com/ulope>`_)163- Muhammad Yasoob Ullah Khalid <yasoob.khld@gmail.com> (`@yasoob <https://github.com/yasoob>`_)164- Josh Brown (`@Montycarlo <https://github.com/Montycarlo>`_)163- Muhammad Yasoob Ullah Khalid <yasoob.khld@gmail.com> (`@yasoob <https://github.com/yasoob>`_)