From 5aa0a4503111b6789a0593552c4a8b7a008c562d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 28 Feb 2021 17:31:57 +0300 Subject: get.py: don't import cgitb It's terrible for performance. --- cgi-bin/get.py | 9 +-------- 1 file changed, 1 insertion(+), 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): -- cgit v1.2.3