summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2000-08-31 10:45:54 (GMT)
committerBarry Warsaw <barry@python.org>2000-08-31 10:45:54 (GMT)
commitb76a55c278cda87cc66ae17b6c33b58a44428bbf (patch)
tree2449c54972dc716348875e3c54492a21a2ac046f
parent1c8feae411a8afda43e903e5c202ea0e1dbcacbf (diff)
downloadcpython-b76a55c278cda87cc66ae17b6c33b58a44428bbf.zip
cpython-b76a55c278cda87cc66ae17b6c33b58a44428bbf.tar.gz
cpython-b76a55c278cda87cc66ae17b6c33b58a44428bbf.tar.bz2
GNUTranslations.BE_MAGIC: don't be so clever in calculating this from
LE_MAGIC; it breaks on Tru64.
-rw-r--r--Lib/gettext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/gettext.py b/Lib/gettext.py
index 647fe56..c2a549f 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."""