Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
etc: Use xset to pass content-type to sendfile.
[ashd.git]
/
python
/
scgi-wsgi
diff --git
a/python/scgi-wsgi
b/python/scgi-wsgi
index
9befb25
..
5ffcf6e
100755
(executable)
--- a/
python/scgi-wsgi
+++ b/
python/scgi-wsgi
@@
-1,4
+1,4
@@
-#!/usr/bin/python
3
+#!/usr/bin/python
import sys, os, getopt
import socket
import sys, os, getopt
import socket
@@
-41,8
+41,8
@@
if sk is None:
try:
handlermod = __import__(args[0], fromlist = ["dummy"])
try:
handlermod = __import__(args[0], fromlist = ["dummy"])
-except ImportError
as
exc:
- sys.stderr.write("scgi-wsgi: handler %s not found: %s\n" % (args[0], exc.
args[0]
))
+except ImportError
,
exc:
+ sys.stderr.write("scgi-wsgi: handler %s not found: %s\n" % (args[0], exc.
message
))
sys.exit(1)
if not modwsgi_compat:
if not hasattr(handlermod, "wmain"):
sys.exit(1)
if not modwsgi_compat:
if not hasattr(handlermod, "wmain"):