get_auth_from_url return None if nothing is found

This commit is contained in:
Kenneth Reitz
2013-03-22 00:13:08 -04:00
parent 1325409560
commit 03a3ca5004
+1 -1
View File
@@ -588,4 +588,4 @@ def get_auth_from_url(url):
parsed = urlparse(url)
return (parsed.username, parsed.password)
else:
return ('', '')
return None