aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2000-08-31 10:45:54 +0000
committerBarry Warsaw <barry@python.org>2000-08-31 10:45:54 +0000
commitb76a55c278cda87cc66ae17b6c33b58a44428bbf (patch)
tree2449c54972dc716348875e3c54492a21a2ac046f /Lib/gettext.py
parentNew method getnamespace. (diff)
downloadcpython-b76a55c278cda87cc66ae17b6c33b58a44428bbf.tar.gz
cpython-b76a55c278cda87cc66ae17b6c33b58a44428bbf.tar.bz2
cpython-b76a55c278cda87cc66ae17b6c33b58a44428bbf.zip
GNUTranslations.BE_MAGIC: don't be so clever in calculating this from
LE_MAGIC; it breaks on Tru64.
Diffstat (limited to 'Lib/gettext.py')
-rw-r--r--Lib/gettext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/gettext.py b/Lib/gettext.py
index 647fe56bf90..c2a549ff689 100644
--- a/Lib/gettext.py
+++ b/Lib/gettext.py
@@ -125,7 +125,7 @@ class NullTranslations:
class GNUTranslations(NullTranslations):
# Magic number of .mo files
LE_MAGIC = 0x950412de
- BE_MAGIC = struct.unpack('>i', struct.pack('<i', LE_MAGIC))[0]
+ BE_MAGIC = 0xde120495
def _parse(self, fp):
"""Override this method to support alternative .mo formats."""