Skip to content
Myr

remove change for timeout=None

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

authored by Alexander 'Leo' Bergolth · committed by Alexander 'Leo' Bergolth · parent 1e7ae06 · Browse files · 1 file+2 added−5 removed
This commit

State

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

Diff stats

1 file+2 added−5 removed

  • other:+2 added−5 removed

1 file+2 added−5 removed

modified:requests/adapters.py+2 added-5 removed
418 unmodified lines
419 "both timeouts to the same value".format(timeout))420 raise ValueError(err)421 elif isinstance(timeout, TimeoutSauce):422 pass423 elif timeout is not None:423 else:424 timeout = TimeoutSauce(connect=timeout, read=timeout)425426 try:427 if not chunked:428 kwargs = {}429 if timeout is not None:430 kwargs['timeout'] = timeout428 resp = conn.urlopen(429 method=request.method,430 url=url,431 body=request.body,
2 unmodified lines
434 assert_same_host=False,435 preload_content=False,436 decode_content=False,437 retries=self.max_retries,441 **kwargs438 timeout=timeout439 )440441 # Send the request.442 else:
76 unmodified lines