Skip to content

Commit

Permalink
Removed global config access. That was slightly dumb.
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Jul 1, 2008
1 parent b2a2dba commit 290bc55
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions bosnowsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
from optparse import OptionParser
from cherrypy.wsgiserver import CherryPyWSGIServer

config = {}

class ImproperlyConfigured(Exception):
pass

Expand Down Expand Up @@ -129,7 +127,6 @@ def main():
Handles the main bit of the program. Called when ran standalone from the
command-line.
"""
global config
if len(sys.argv[1:]) < 2:
sys.exit("you must specify a server name and command.")
name, command = sys.argv[1:3]
Expand Down

0 comments on commit 290bc55

Please sign in to comment.