]> granicus.if.org Git - python/commitdiff
Whitespace normalization.
authorTim Peters <tim.peters@gmail.com>
Tue, 24 Jan 2006 22:44:08 +0000 (22:44 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 24 Jan 2006 22:44:08 +0000 (22:44 +0000)
Lib/urllib.py

index 88df4058bae4536e15e86af27b09447b0b70a6a8..e1fa743828c74d6afd0110d8c35451beabba67a9 100644 (file)
@@ -299,7 +299,7 @@ class URLopener:
 
             #print "proxy via http:", host, selector
         if not host: raise IOError, ('http error', 'no host given')
-       
+
         if proxy_passwd:
             import base64
             proxy_auth = base64.encodestring(proxy_passwd).strip()
@@ -672,7 +672,7 @@ class FancyURLopener(URLopener):
             return getattr(self,name)(url, realm)
         else:
             return getattr(self,name)(url, realm, data)
-    
+
     def http_error_407(self, url, fp, errcode, errmsg, headers, data=None):
         """Error 407 -- proxy authentication required.
         This function supports Basic authentication only."""
@@ -694,7 +694,7 @@ class FancyURLopener(URLopener):
             return getattr(self,name)(url, realm)
         else:
             return getattr(self,name)(url, realm, data)
-    
+
     def retry_proxy_http_basic_auth(self, url, realm, data=None):
         host, selector = splithost(url)
         newurl = 'http://' + host + selector
@@ -728,7 +728,7 @@ class FancyURLopener(URLopener):
             return self.open(newurl)
         else:
             return self.open(newurl, data)
-           
+
     def retry_http_basic_auth(self, url, realm, data=None):
         host, selector = splithost(url)
         i = host.find('@') + 1