]> gitweb.michael.orlitzky.com - dead/census-tools.git/commitdiff
Uppercased the exit codes per the Python style guidelines.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 16 Sep 2009 03:02:54 +0000 (23:02 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 16 Sep 2009 03:02:54 +0000 (23:02 -0400)
Added a new exit code, NO_RESULTS.

bin/sf1blocks2sql
src/ExitCodes.py

index 1918a2956640e0f0daebc5d9f01f50e6cb811513..80c516cc2213dc9374d3b0e1ae8c774b2afb290a 100755 (executable)
@@ -25,7 +25,7 @@ import SummaryFile1
 
 if (len(sys.argv) < 3):
     print "Usage: %s <geo_file> <table_name>" % sys.argv[0]
-    raise SystemExit(ExitCodes.NotEnoughArgs)
+    raise SystemExit(ExitCodes.NOT_ENOUGH_ARGS)
 
 geo_file_path = sys.argv[1]
 table_name = sys.argv[2]
index ed9d3694e60bb1f31721acc8c04297723f9fdaf9..69f4b172b4d709b1ca3c7a0fdcb3019aa85b420d 100644 (file)
@@ -1 +1,2 @@
-NotEnoughArgs = 1
+NOT_ENOUGH_ARGS = 1
+NO_RESULTS = 2