X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=python%2Fashd%2Fwsgidir.py;h=e5dee720b22671964534c15a72bd875863967b3b;hp=335a5d797e6664b52832ec9b6f8836fcea9499fa;hb=adb11d5f566968a0a12fcd225b5748bce09e0014;hpb=8498ab28d28bf9c04a3e97be9fc606e18c327a9c diff --git a/python/ashd/wsgidir.py b/python/ashd/wsgidir.py index 335a5d7..e5dee72 100644 --- a/python/ashd/wsgidir.py +++ b/python/ashd/wsgidir.py @@ -54,7 +54,7 @@ def chain(path, env, startreq): 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 @@ -78,5 +78,5 @@ def application(env, startreq): 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