auth tuple fix

This commit is contained in:
Kenneth Reitz
2011-10-23 12:26:46 -04:00
parent af6aa3e572
commit 12db1576e9
+2 -2
View File
@@ -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:]))