From 62bcf1a4c62cd5b7738bdab866e9b6dde5bf774d Mon Sep 17 00:00:00 2001 From: theStack Date: Mon, 14 Dec 2009 14:48:16 +0100 Subject: [PATCH] camelcase fct name + removed useless comment (yes that was pedantic) --- frprog.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frprog.py b/frprog.py index 7ea1596..d481f89 100755 --- a/frprog.py +++ b/frprog.py @@ -113,7 +113,7 @@ class FlashSequence(object): self.address = address self.data = data -def read_mhx_file(fp): # needs a file handle to the desired mhx file +def readMHXFile(fp): # needs a file handle to the desired mhx file retval = [] # returns a list of FlashSequence objects linecount = 0 for line in fp: @@ -156,9 +156,7 @@ try: except IOError: print sys.argv[0] + ": Error - couldn't open file " + sys.argv[1] + "!" sys.exit(1) - -# get list of all our address/data pairs to flash -flashseqs = read_mhx_file(fp) +flashseqs = readMHXFile(fp) fp.close() print "The following flash sequences have been read in:" -- 2.25.1