summaryrefslogtreecommitdiffstats
path: root/Lib/urllib2.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-07-16 21:35:23 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-07-16 21:35:23 (GMT)
commitc411dbaeee29dba87d5432a92fe76ea65d8e25f0 (patch)
tree45b71b45b9b5c2f2ddc1b644166208cd041f076c /Lib/urllib2.py
parent8531b1b28de5356f1154e13704d499121ea72af8 (diff)
downloadcpython-c411dbaeee29dba87d5432a92fe76ea65d8e25f0.zip
cpython-c411dbaeee29dba87d5432a92fe76ea65d8e25f0.tar.gz
cpython-c411dbaeee29dba87d5432a92fe76ea65d8e25f0.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r--Lib/urllib2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py
index 60c60d4..9a4ad3c 100644
--- a/Lib/urllib2.py
+++ b/Lib/urllib2.py
@@ -165,7 +165,7 @@ class HTTPError(URLError, addinfourl):
# The addinfourl classes depend on fp being a valid file
# object. In some cases, the HTTPError may not have a valid
# file object. If this happens, the simplest workaround is to
- # not initialize the base classes.
+ # not initialize the base classes.
if fp is not None:
self.__super_init(fp, hdrs, url)
@@ -460,7 +460,7 @@ class ProxyHandler(BaseHandler):
user_pass, host = host.split('@', 1)
if ':' in user_pass:
user, password = user_pass.split(':', 1)
- user_pass = base64.encodestring('%s:%s' % (unquote(user),
+ user_pass = base64.encodestring('%s:%s' % (unquote(user),
unquote(password)))
req.add_header('Proxy-Authorization', 'Basic ' + user_pass)
host = unquote(host)