Skip to content
Myr

Merge pull request #2513 from Montycarlo/master

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

Minor Patch TypeError thrown

authored by Cory Benfield · committed by Cory Benfield · parents 8dda20f, 1b5317e · Browse files · 2 files+10 added−3 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+10 added−3 removed

  • other:+10 added−3 removed

2 files+10 added−3 removed

modified:requests/packages/urllib3/connectionpool.py+8 added-2 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: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)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)319 except TypeError:320 raise err321322323 def _make_request(self, conn, method, url, timeout=_Default,324 **httplib_request_kw):325 """326 Perform a request on a given urllib connection object taken from our
476 unmodified lines
modified:AUTHORS.rst+2 added-1 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>`_)163- Muhammad Yasoob Ullah Khalid <yasoob.khld@gmail.com> (`@yasoob <https://github.com/yasoob>`_)164- Josh Brown (`@Montycarlo <https://github.com/Montycarlo>`_)