mirror of
https://github.com/kennethreitz/requests3.git
synced 2026-06-05 23:10:16 +00:00
get_auth_from_url return None if nothing is found
This commit is contained in:
+1
-1
@@ -588,4 +588,4 @@ def get_auth_from_url(url):
|
||||
parsed = urlparse(url)
|
||||
return (parsed.username, parsed.password)
|
||||
else:
|
||||
return ('', '')
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user