changeset 20:de28a619880e

dereference options
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 28 Feb 2012 16:03:25 -0800
parents bf70fc5a115f
children 98c147e88be8
files simpypi/factory.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/simpypi/factory.py	Tue Feb 28 16:02:53 2012 -0800
+++ b/simpypi/factory.py	Tue Feb 28 16:03:25 2012 -0800
@@ -74,7 +74,7 @@
     print "http://localhost:%d/" % options.port
     try:
         app = factory(directory=options.directory)
-        server = simple_server.make_server(host='0.0.0.0', port=port, app=app)
+        server = simple_server.make_server(host='0.0.0.0', port=options.port, app=app)
         server.serve_forever()
     finally:
         if tmpdir: