From 85840b269f9b28f9d53f5159d23eeedf744135a6 Mon Sep 17 00:00:00 2001 From: Sayamindu Dasgupta Date: Mon, 8 Feb 2010 23:45:39 +0530 Subject: [PATCH] Style and PEP8 fixes --- src/sugar/activity/i18n.py | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) 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 = '