summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-06-04 09:42:55 (GMT)
committerGeorg Brandl <georg@python.org>2009-06-04 09:42:55 (GMT)
commit706824f19f734e5e567f32d989376547c0ae08da (patch)
tree0cd5ff7ccc373a848f409b572f1bd1ae727fd8fe /Lib/test/test_urllib2.py
parent3ed0deb9af03c3546ebe583c38ccfd0c5e364196 (diff)
downloadcpython-706824f19f734e5e567f32d989376547c0ae08da.zip
cpython-706824f19f734e5e567f32d989376547c0ae08da.tar.gz
cpython-706824f19f734e5e567f32d989376547c0ae08da.tar.bz2
More codestring -> codebytes.
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r--Lib/test/test_urllib2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index c8be440..39ec498 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -1050,7 +1050,7 @@ class HandlerTests(unittest.TestCase):
self.assertFalse(http_handler.requests[0].has_header(auth_header))
userpass = bytes('%s:%s' % (user, password), "ascii")
auth_hdr_value = ('Basic ' +
- base64.encodestring(userpass).strip().decode())
+ base64.encodebytes(userpass).strip().decode())
self.assertEqual(http_handler.requests[1].get_header(auth_header),
auth_hdr_value)