summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xmlrpc.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-06-04 09:11:51 (GMT)
committerGeorg Brandl <georg@python.org>2009-06-04 09:11:51 (GMT)
commitb54d801280e3f510782e2855504710947d10f053 (patch)
tree457166089bbc17f190eb7140755c7948e2918829 /Lib/test/test_xmlrpc.py
parentcef803f82c82017b734dd4264478ae6f02ce21f5 (diff)
downloadcpython-b54d801280e3f510782e2855504710947d10f053.zip
cpython-b54d801280e3f510782e2855504710947d10f053.tar.gz
cpython-b54d801280e3f510782e2855504710947d10f053.tar.bz2
#3613: add base64.encodebytes and decodebytes as the new spelling of encodestring and decodestring; deprecate the latter.
Diffstat (limited to 'Lib/test/test_xmlrpc.py')
-rw-r--r--Lib/test/test_xmlrpc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py
index 73d53ee..d4e8122 100644
--- a/Lib/test/test_xmlrpc.py
+++ b/Lib/test/test_xmlrpc.py
@@ -232,7 +232,7 @@ class BinaryTestCase(unittest.TestCase):
def test_decode(self):
d = b'\x01\x02\x03abc123\xff\xfe'
- de = base64.encodestring(d)
+ de = base64.encodebytes(d)
t1 = xmlrpclib.Binary()
t1.decode(de)
self.assertEqual(str(t1), str(d, "latin-1"))