From 85840b269f9b28f9d53f5159d23eeedf744135a6 Mon Sep 17 00:00:00 2001 From: Sayamindu Dasgupta Date: Mon, 08 Feb 2010 18:15:39 +0000 Subject: Style and PEP8 fixes --- diff --git a/src/sugar/activity/i18n.py b/src/sugar/activity/i18n.py index b973221..e45fc19 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 = '