projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1325409
)
get_auth_from_url return None if nothing is found
author
Kenneth Reitz
<me@kennethreitz.com>
Fri, 22 Mar 2013 04:13:08 +0000
(
00:13
-0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Fri, 22 Mar 2013 04:13:08 +0000
(
00:13
-0400)
requests/utils.py
patch
|
blob
|
history
diff --git
a/requests/utils.py
b/requests/utils.py
index a2d434effdb6d8fa291abeef27b3d7a43b91db0a..08e22983cc61ce8503a13d80882dd7f21b4e4b94 100644
(file)
--- a/
requests/utils.py
+++ b/
requests/utils.py
@@
-588,4
+588,4
@@
def get_auth_from_url(url):
parsed = urlparse(url)
return (parsed.username, parsed.password)
else:
- return
('', '')
+ return
None