From 12db1576e9d0ed897f799a8f382ee92db891988d Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 23 Oct 2011 12:26:46 -0400 Subject: [PATCH] auth tuple fix --- requests/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requests/auth.py b/requests/auth.py index 6825441..d59a687 100644 --- a/requests/auth.py +++ b/requests/auth.py @@ -40,7 +40,7 @@ def dispatch(t): t = list(t) # Make sure they're passing in something. - assert len(t) <= 2 + assert len(t) >= 2 # If only two items are passed in, assume HTTPBasic. if (len(t) == 2): @@ -54,6 +54,6 @@ def dispatch(t): t[0] = http_digest # Return a custom callable. - return (t[0], t[1:]) + return (t[0], tuple(t[1:])) -- 2.34.1