Skip to content

Commit 6fad85f

Browse files
committed
dispatch.fcgi: Remove unused imports
Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 6f67358 commit 6fad85f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

web_scripts/dispatch.fcgi

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22

3-
import os, sys
3+
import os
44

55
webappdir = os.path.realpath(os.path.dirname(os.path.abspath(__file__)) + "/..")
66

@@ -47,7 +47,7 @@ if __name__ == "__main__":
4747
RestartingServer(wsgi_app, restart_file).run()
4848
except Exception as e:
4949
from traceback import format_exception
50-
import pwd, socket, sys, os
50+
import sys
5151

5252
tup = sys.exc_info()
5353

@@ -56,8 +56,6 @@ if __name__ == "__main__":
5656

5757
for l in format_exception(*tup):
5858
yield l
59-
whoami = pwd.getpwuid(os.getuid())[0]
60-
hostname = socket.gethostname()
6159
yield "To restart: touch %s\n" % os.path.abspath(restart_file)
6260

6361
RestartingServer(errApp, restart_file).run()

0 commit comments

Comments
 (0)