From: Kenneth Reitz Date: Fri, 22 Mar 2013 04:13:08 +0000 (-0400) Subject: get_auth_from_url return None if nothing is found X-Git-Tag: v1.2.0~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03a3ca500491ed55c90255398fa514be017efe10;p=services%2Fpython-requests.git get_auth_from_url return None if nothing is found --- diff --git a/requests/utils.py b/requests/utils.py index a2d434e..08e2298 100644 --- 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