Skip to content
Myr

auth tuple fix

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent af6aa3e · Browse files · 1 file+2 added−2 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−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/auth.py+2 added-2 removed
38 unmodified lines
39 else:40 t = list(t)4142 # Make sure they're passing in something.43 assert len(t) <= 243 assert len(t) >= 24445 # If only two items are passed in, assume HTTPBasic.46 if (len(t) == 2):47 t.insert(0, 'basic')
5 unmodified lines
53 elif t[0] in ('digest',):54 t[0] = http_digest5556 # Return a custom callable.57 return (t[0], t[1:])57 return (t[0], tuple(t[1:]))5859