]> granicus.if.org Git - python/commitdiff
GNUTranslations.BE_MAGIC: don't be so clever in calculating this from
authorBarry Warsaw <barry@python.org>
Thu, 31 Aug 2000 10:45:54 +0000 (10:45 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 31 Aug 2000 10:45:54 +0000 (10:45 +0000)
LE_MAGIC; it breaks on Tru64.

Lib/gettext.py

index 647fe56bf90ac9918038687d1a0cbcb694934d66..c2a549ff689360268c0daa4aa5740f998e4c963d 100644 (file)
@@ -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."""