mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
GNUTranslations.BE_MAGIC: don't be so clever in calculating this from
LE_MAGIC; it breaks on Tru64.
This commit is contained in:
parent
1c8feae411
commit
b76a55c278
1 changed files with 1 additions and 1 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue