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
2016-07-01 13:26:23 -04:00
committed by GitHub
parent d9c2f778ee
commit 0c4d254a9c
+1 -1
View File
@@ -1930,7 +1930,7 @@ class Auth(object):
parts = next.split('/')
if not ':' in parts[0]:
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 None