hmmm
authorKenneth Reitz <me@kennethreitz.com>
Wed, 17 Aug 2011 04:09:38 +0000 (00:09 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Wed, 17 Aug 2011 04:09:38 +0000 (00:09 -0400)
requests/models.py

index 90b356f9be6c8503828bf41015027a568f146cff..a48e67eac67a1fa5deb8481d98e56229ee7868bb 100644 (file)
@@ -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]