comparison dogdish/dispatcher.py @ 6:0a7bf7e70888

correct variable name
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 10 Oct 2012 16:31:28 -0700
parents 6e16197950b7
children 65d0a1153864
comparison
equal deleted inserted replaced
5:6e16197950b7 6:0a7bf7e70888
79 parser.add_option('-p', '--port', dest='port', 79 parser.add_option('-p', '--port', dest='port',
80 default=8080, type='int', 80 default=8080, type='int',
81 help="port to serve on") 81 help="port to serve on")
82 options, args = parser.parse_args() 82 options, args = parser.parse_args()
83 83
84 dispatcher = Dispatcher() 84 app = Dispatcher()
85 85
86 server = simple_server.make_server(host='0.0.0.0', port=options.port, app=app) 86 server = simple_server.make_server(host='0.0.0.0', port=options.port, app=app)
87 server.serve_forever() 87 server.serve_forever()
88 88
89 if __name__ == '__main__': 89 if __name__ == '__main__':