]> gitweb.michael.orlitzky.com - dead/census-tools.git/commitdiff
Uppercased GeoRecord.MINIMUM_LINE_LENGTH in accordance with PEP 8: http://python...
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 11 Sep 2009 05:20:47 +0000 (01:20 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 11 Sep 2009 05:20:47 +0000 (01:20 -0400)
src/SummaryFile1.py

index 3c82186474108e72908d3d3ded341d48470c1409..bd69d0095137d30caff160fbed0cea2567530040 100644 (file)
@@ -11,7 +11,7 @@ class GeoRecord:
     This class wraps one record in an SF1 geo file.
     """
 
     This class wraps one record in an SF1 geo file.
     """
 
-    MinimumLineLength = 400
+    MINIMUM_LINE_LENGTH = 400
 
 
 class Block:
 
 
 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.
         """
         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()
 
         
         record = GeoRecord()