From 1817caf30f16712c59475db2af98030f9456cebf Mon Sep 17 00:00:00 2001 From: Sayamindu Dasgupta Date: Tue, 09 Feb 2010 11:43:04 +0000 Subject: Consistent variable names --- diff --git a/src/sugar/activity/i18n.py b/src/sugar/activity/i18n.py index a91b912..d235a55 100644 --- a/src/sugar/activity/i18n.py +++ b/src/sugar/activity/i18n.py @@ -31,19 +31,19 @@ _MO_BIG_ENDIAN = 0xde120495 _MO_LITTLE_ENDIAN = 0x950412de -def _readbin(handle, fmt, bytecount): +def _read_bin(handle, fmt, bytecount): read_bytes = handle.read(bytecount) - retvalue = struct.unpack(fmt, read_bytes) - if len(retvalue) == 1: - return retvalue[0] + ret_value = struct.unpack(fmt, read_bytes) + if len(ret_value) == 1: + return ret_value[0] else: - return retvalue + return ret_value def _extract_header(filepath): header = '' handle = open(filepath, 'rb') - magic_number = _readbin(handle, '