From: Michael Orlitzky Date: Wed, 16 Sep 2009 03:02:54 +0000 (-0400) Subject: Uppercased the exit codes per the Python style guidelines. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=35059c0130c3c668a54f91e6c55949362c592a93;p=dead%2Fcensus-tools.git Uppercased the exit codes per the Python style guidelines. Added a new exit code, NO_RESULTS. --- diff --git a/bin/sf1blocks2sql b/bin/sf1blocks2sql index 1918a29..80c516c 100755 --- a/bin/sf1blocks2sql +++ b/bin/sf1blocks2sql @@ -25,7 +25,7 @@ import SummaryFile1 if (len(sys.argv) < 3): print "Usage: %s " % sys.argv[0] - raise SystemExit(ExitCodes.NotEnoughArgs) + raise SystemExit(ExitCodes.NOT_ENOUGH_ARGS) geo_file_path = sys.argv[1] table_name = sys.argv[2] diff --git a/src/ExitCodes.py b/src/ExitCodes.py index ed9d369..69f4b17 100644 --- a/src/ExitCodes.py +++ b/src/ExitCodes.py @@ -1 +1,2 @@ -NotEnoughArgs = 1 +NOT_ENOUGH_ARGS = 1 +NO_RESULTS = 2