From 36ea06a63bb12fed3406b3e7bbbcd87633877045 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Fri, 3 Sep 2010 07:42:44 +0200 Subject: [PATCH] scgi-wsgi: Fixed a couple of typos. --- python/ashd/wsgidir.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/ashd/wsgidir.py b/python/ashd/wsgidir.py index 037544d..212c4b7 100644 --- a/python/ashd/wsgidir.py +++ b/python/ashd/wsgidir.py @@ -42,20 +42,20 @@ def chain(path, env, startreq): return (mod.wmain())(env, startreq) elif hasattr(mod, "application"): return mod.application(env, startreq) - return wsgi.simpleerror(env, startreq, 500, "Internal Error", "Invalid WSGI handler.") + return wsgiutil.simpleerror(env, startreq, 500, "Internal Error", "Invalid WSGI handler.") exts["wsgi"] = chain def application(env, startreq): if not "SCRIPT_FILENAME" in env: - return wsgiutil.simplerror(env, startreq, 500, "Internal Error", "The server is erroneously configured.") + return wsgiutil.simpleerror(env, startreq, 500, "Internal Error", "The server is erroneously configured.") path = env["SCRIPT_FILENAME"] base = os.path.basename(path) p = base.rfind('.') if p < 0 or not os.access(path, os.R_OK): - return wsgiutil.simplerror(env, startreq, 500, "Internal Error", "The server is erroneously configured.") + return wsgiutil.simpleerror(env, startreq, 500, "Internal Error", "The server is erroneously configured.") ext = base[p + 1:] if not ext in exts: - return wsgiutil.simplerror(env, startreq, 500, "Internal Error", "The server is erroneously configured.") + return wsgiutil.simpleerror(env, startreq, 500, "Internal Error", "The server is erroneously configured.") return(exts[ext](path, env, startreq)) def wmain(argv): -- 2.11.0