We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f67358 commit 6fad85fCopy full SHA for 6fad85f
web_scripts/dispatch.fcgi
@@ -1,6 +1,6 @@
1
#!/usr/bin/env python
2
3
-import os, sys
+import os
4
5
webappdir = os.path.realpath(os.path.dirname(os.path.abspath(__file__)) + "/..")
6
@@ -47,7 +47,7 @@ if __name__ == "__main__":
47
RestartingServer(wsgi_app, restart_file).run()
48
except Exception as e:
49
from traceback import format_exception
50
- import pwd, socket, sys, os
+ import sys
51
52
tup = sys.exc_info()
53
@@ -56,8 +56,6 @@ if __name__ == "__main__":
56
57
for l in format_exception(*tup):
58
yield l
59
- whoami = pwd.getpwuid(os.getuid())[0]
60
- hostname = socket.gethostname()
61
yield "To restart: touch %s\n" % os.path.abspath(restart_file)
62
63
RestartingServer(errApp, restart_file).run()
0 commit comments