X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FSummaryFile1.py;h=bd69d0095137d30caff160fbed0cea2567530040;hb=d1ae92e454c529c4ace25e7297ba0e4a3b428f29;hp=3c82186474108e72908d3d3ded341d48470c1409;hpb=48e8919fbdb366e153766e2e0fe135b6b8ca3da4;p=dead%2Fcensus-tools.git 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()