aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_gettext.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-06-04 09:42:55 +0000
committerGeorg Brandl <georg@python.org>2009-06-04 09:42:55 +0000
commit706824f19f734e5e567f32d989376547c0ae08da (patch)
tree0cd5ff7ccc373a848f409b572f1bd1ae727fd8fe /Lib/test/test_gettext.py
parent3ed0deb9af03c3546ebe583c38ccfd0c5e364196 (diff)
downloadcpython-706824f19f734e5e567f32d989376547c0ae08da.tar.gz
cpython-706824f19f734e5e567f32d989376547c0ae08da.zip
More codestring -> codebytes.
Diffstat (limited to 'Lib/test/test_gettext.py')
-rw-r--r--Lib/test/test_gettext.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_gettext.py b/Lib/test/test_gettext.py
index e26b30a8994..0023941dd58 100644
--- a/Lib/test/test_gettext.py
+++ b/Lib/test/test_gettext.py
@@ -65,13 +65,13 @@ class GettextBaseTest(unittest.TestCase):
if not os.path.isdir(LOCALEDIR):
os.makedirs(LOCALEDIR)
fp = open(MOFILE, 'wb')
- fp.write(base64.decodestring(GNU_MO_DATA))
+ fp.write(base64.decodebytes(GNU_MO_DATA))
fp.close()
fp = open(UMOFILE, 'wb')
- fp.write(base64.decodestring(UMO_DATA))
+ fp.write(base64.decodebytes(UMO_DATA))
fp.close()
fp = open(MMOFILE, 'wb')
- fp.write(base64.decodestring(MMO_DATA))
+ fp.write(base64.decodebytes(MMO_DATA))
fp.close()
self.env = support.EnvironmentVarGuard()
self.env['LANGUAGE'] = 'xx'