From d1ae92e454c529c4ace25e7297ba0e4a3b428f29 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 11 Sep 2009 01:20:47 -0400 Subject: [PATCH] Uppercased GeoRecord.MINIMUM_LINE_LENGTH in accordance with PEP 8: http://python.org/dev/peps/pep-0008/. --- src/SummaryFile1.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SummaryFile1.py b/src/SummaryFile1.py index 3c82186..bd69d00 100644 --- a/src/SummaryFile1.py +++ b/src/SummaryFile1.py @@ -11,7 +11,7 @@ class GeoRecord: This class wraps one record in an SF1 geo file. """ - MinimumLineLength = 400 + MINIMUM_LINE_LENGTH = 400 class Block: @@ -98,8 +98,8 @@ class GeoRecordParser: allow the GeoRecord class to parse the data meaningfully and throw an error if something doesn't look right. """ - if (len(line) < GeoRecord.MinimumLineLength): - raise RecordError("The input line is too short. The SF1 specification requires a line length of %d characters; this line contains only %d characters" % (GeoRecord.MinimumLineLength, len(line))) + if (len(line) < GeoRecord.MINIMUM_LINE_LENGTH): + raise RecordError("The input line is too short. The SF1 specification requires a line length of %d characters; this line contains only %d characters" % (GeoRecord.MINIMUM_LINE_LENGTH, len(line))) record = GeoRecord() -- 2.43.2