diff options
author | Georg Brandl <georg@python.org> | 2009-06-04 09:42:55 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-06-04 09:42:55 (GMT) |
commit | 706824f19f734e5e567f32d989376547c0ae08da (patch) | |
tree | 0cd5ff7ccc373a848f409b572f1bd1ae727fd8fe /Lib/email | |
parent | 3ed0deb9af03c3546ebe583c38ccfd0c5e364196 (diff) | |
download | cpython-706824f19f734e5e567f32d989376547c0ae08da.zip cpython-706824f19f734e5e567f32d989376547c0ae08da.tar.gz cpython-706824f19f734e5e567f32d989376547c0ae08da.tar.bz2 |
More codestring -> codebytes.
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/test/test_email.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 4b5065f..86e3537 100644 --- a/Lib/email/test/test_email.py +++ b/Lib/email/test/test_email.py @@ -944,7 +944,7 @@ class TestMIMEAudio(unittest.TestCase): def test_encoding(self): payload = self._au.get_payload() - self.assertEqual(base64.decodestring(payload), self._audiodata) + self.assertEqual(base64.decodebytes(payload), self._audiodata) def test_checkSetMinor(self): au = MIMEAudio(self._audiodata, 'fish') @@ -984,7 +984,7 @@ class TestMIMEImage(unittest.TestCase): def test_encoding(self): payload = self._im.get_payload() - self.assertEqual(base64.decodestring(payload), self._imgdata) + self.assertEqual(base64.decodebytes(payload), self._imgdata) def test_checkSetMinor(self): im = MIMEImage(self._imgdata, 'fish') |