From: Michael Orlitzky Date: Fri, 11 Sep 2009 05:20:47 +0000 (-0400) Subject: Uppercased GeoRecord.MINIMUM_LINE_LENGTH in accordance with PEP 8: http://python... X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=d1ae92e454c529c4ace25e7297ba0e4a3b428f29;p=dead%2Fcensus-tools.git Uppercased GeoRecord.MINIMUM_LINE_LENGTH in accordance with PEP 8: http://python.org/dev/peps/pep-0008/. --- 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()