if not hasattr(handlermod, "wmain"):
sys.stderr.write("ashd-wsgi: handler %s has no `wmain' function\n" % args[0])
sys.exit(1)
- handler = handlermod.wmain(args[1:])
+ handler = handlermod.wmain(*args[1:])
else:
if not hasattr(handlermod, "application"):
sys.stderr.write("ashd-wsgi: handler %s has no `application' object\n" % args[0])
entry = mod.entry
else:
if hasattr(mod.mod, "wmain"):
- entry = mod.mod.wmain([])
+ entry = mod.mod.wmain()
elif hasattr(mod.mod, "application"):
entry = mod.mod.application
mod.entry = entry
return wsgiutil.simpleerror(env, startreq, 500, "Internal Error", "The server is erroneously configured.")
return(exts[ext](path, env, startreq))
-def wmain(argv):
+def wmain(*argv):
return application
if not hasattr(handlermod, "wmain"):
sys.stderr.write("scgi-wsgi: handler %s has no `wmain' function\n" % args[0])
sys.exit(1)
- handler = handlermod.wmain(args[1:])
+ handler = handlermod.wmain(*args[1:])
else:
if not hasattr(handlermod, "application"):
sys.stderr.write("scgi-wsgi: handler %s has no `application' object\n" % args[0])