aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgi-bin/get.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-02-28 17:31:57 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-02-28 17:31:57 +0300
commit5aa0a4503111b6789a0593552c4a8b7a008c562d (patch)
treec59a1a446824c62a225027cc0bd9c2f5b45b274a /cgi-bin/get.py
parentget.py: add licensing notes (diff)
downloadlinux-status-5aa0a4503111b6789a0593552c4a8b7a008c562d.tar.gz
linux-status-5aa0a4503111b6789a0593552c4a8b7a008c562d.zip
get.py: don't import cgitb
It's terrible for performance.
Diffstat (limited to '')
-rwxr-xr-xcgi-bin/get.py9
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):