GNUTranslations.BE_MAGIC: don't be so clever in calculating this from

LE_MAGIC; it breaks on Tru64.
This commit is contained in:
Barry Warsaw 2000-08-31 10:45:54 +00:00
parent 1c8feae411
commit b76a55c278

View 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."""