mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Open binary files in binary mode. Fixes test failure under Windows.
This commit is contained in:
parent
124af7cfd6
commit
c79519569d
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ MOFILE = os.path.join(LOCALEDIR, 'gettext.mo')
|
|||
|
||||
def setup():
|
||||
os.makedirs(LOCALEDIR)
|
||||
fp = open(MOFILE, 'w')
|
||||
fp = open(MOFILE, 'wb')
|
||||
fp.write(base64.decodestring(GNU_MO_DATA))
|
||||
fp.close()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue