From 1817caf30f16712c59475db2af98030f9456cebf Mon Sep 17 00:00:00 2001 From: Sayamindu Dasgupta Date: Tue, 9 Feb 2010 17:13:04 +0530 Subject: [PATCH] Consistent variable names --- src/sugar/activity/i18n.py | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/sugar/activity/i18n.py b/src/sugar/activity/i18n.py index a91b9126..d235a554 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, '