From: Kenneth Reitz Date: Wed, 17 Aug 2011 04:09:38 +0000 (-0400) Subject: hmmm X-Git-Tag: v0.6.0~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24da41005c5d36922516d22aa9d596ec88a1a8d8;p=services%2Fpython-requests.git hmmm --- diff --git a/requests/models.py b/requests/models.py index 90b356f..a48e67e 100644 --- a/requests/models.py +++ b/requests/models.py @@ -260,7 +260,7 @@ class Request(object): def _build_url(self): - """Build the actual URL to use""" + """Build the actual URL to use.""" # Support for unicode domain names. parsed_url = list(urlparse(self.url)) @@ -286,6 +286,7 @@ class Request(object): :param anyway: If True, request will be sent, even if it has already been sent. """ + self._checks() success = False @@ -495,8 +496,10 @@ class AuthManager(object): def reduce_uri(self, uri, default_port=True): """Accept authority or URI and extract only the authority and path.""" + # note HTTP URLs do not have a userinfo component parts = urllib2.urlparse.urlsplit(uri) + if parts[1]: # URI scheme = parts[0]