commit | c79519569d20d90cc9ec6ff8584dfd959bd2e1f1 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Sat Aug 26 21:01:27 2000 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Sat Aug 26 21:01:27 2000 +0000 |
tree | 358df6eef2d4d3a1698b0ad7021c4f11a6e736be | |
parent | 124af7cfd67de52e600c8519b7026a2bed48c494 [diff] [blame] |
Open binary files in binary mode. Fixes test failure under Windows.
diff --git a/Lib/test/test_gettext.py b/Lib/test/test_gettext.py index 5006fff..77a6e96 100644 --- a/Lib/test/test_gettext.py +++ b/Lib/test/test_gettext.py
@@ -102,7 +102,7 @@ def setup(): os.makedirs(LOCALEDIR) - fp = open(MOFILE, 'w') + fp = open(MOFILE, 'wb') fp.write(base64.decodestring(GNU_MO_DATA)) fp.close()