Changed tuple to list

The comparison between parts[1:3] and ('', host) would return false because a list and a tuple were being compared.
This commit is contained in:
Jason Bohrer authored and GitHub committed 2016-07-01 13:26:23 -04:00
1 parent d9c2f778ee
commit 0c4d254a9c
1 file changed
+1 -1
+1 -1
View File
@@ -1930,7 +1930,7 @@ class Auth(object):
parts = next.split('/') parts = next.split('/')
if not ':' in parts[0]: if not ':' in parts[0]:
return next return next
elif len(parts)>2 and parts[0].endswith(':') and parts[1:3]==('', host): elif len(parts)>2 and parts[0].endswith(':') and parts[1:3]==['', host]:
return next return next
return None return None