diff --git a/src/sugar/activity/i18n.py b/src/sugar/activity/i18n.py index b9732216..e45fc19a 100644 --- a/src/sugar/activity/i18n.py +++ b/src/sugar/activity/i18n.py @@ -27,9 +27,10 @@ import sys import dateutil.parser import time -_MO_BIG_ENDIAN = 0xde120495 +_MO_BIG_ENDIAN = 0xde120495 _MO_LITTLE_ENDIAN = 0x950412de + def _readbin(handle, fmt, bytecount): read_bytes = handle.read(bytecount) retvalue = struct.unpack(fmt, read_bytes) @@ -38,6 +39,7 @@ def _readbin(handle, fmt, bytecount): else: return retvalue + def _extract_header(filepath): header = '' handle = open(filepath, 'rb') @@ -48,9 +50,9 @@ def _extract_header(filepath): elif magic_number == _MO_LITTLE_ENDIAN: fmt = '