Skip to content
Myr

small rearrangement

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 a180db9 · Browse files · 1 file+3 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

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:requests/adapters.py+3 added-3 removed
407 unmodified lines
408409 chunked = not (request.body is None or 'Content-Length' in request.headers)410411 412 if isinstance(timeout, TimeoutSauce):413 pass414 elif isinstance(timeout, tuple):412 if isinstance(timeout, tuple):413 try:414 connect, read = timeout415 timeout = TimeoutSauce(connect=connect, read=read)416 except ValueError as e:
1 unmodified line
418 err = ("Invalid timeout {0}. Pass a (connect, read) "419 "timeout tuple, or a single float to set "420 "both timeouts to the same value".format(timeout))421 raise ValueError(err)422 elif isinstance(timeout, TimeoutSauce):423 pass424 elif timeout is not None:425 timeout = TimeoutSauce(connect=timeout, read=timeout)426427 try:
95 unmodified lines