fix choose_server to return "auto" instead of None.

passing server=None to bottle won't work, we need to pass auto here.
This commit is contained in:
Ralf Schmitt 2011-07-29 13:24:47 +02:00
parent d956f7ce67
commit 475bd9e1c6
1 changed files with 1 additions and 2 deletions

View File

@ -89,14 +89,13 @@ def server_static(filename):
def choose_server():
server = "auto"
for x in ["paste", "cherrypy", "twisted"]:
try:
__import__(x)
return x
except:
pass
return "auto"
def usage():
print """pypiserver [-p PORT] [-r PACKAGES_DIR]