diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-02-28 17:31:57 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-02-28 17:31:57 +0300 |
commit | 5aa0a4503111b6789a0593552c4a8b7a008c562d (patch) | |
tree | c59a1a446824c62a225027cc0bd9c2f5b45b274a | |
parent | get.py: add licensing notes (diff) | |
download | linux-status-5aa0a4503111b6789a0593552c4a8b7a008c562d.tar.gz linux-status-5aa0a4503111b6789a0593552c4a8b7a008c562d.zip |
get.py: don't import cgitb
It's terrible for performance.
Diffstat (limited to '')
-rwxr-xr-x | cgi-bin/get.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cgi-bin/get.py b/cgi-bin/get.py index dae200b..500f081 100755 --- a/cgi-bin/get.py +++ b/cgi-bin/get.py @@ -6,7 +6,7 @@ # Distributed under the MIT License. import abc -import cgi, cgitb +import cgi from collections import namedtuple from concurrent.futures import ThreadPoolExecutor import json @@ -38,15 +38,8 @@ def headers(): print() -def debugging(): - # TODO: figure out how to include this on the web page - #cgitb.enable() - pass - - def setup(): headers() - debugging() def format_response(response): |