bpo-47061: deprecate cgi and cgitb (GH-32410)

Part of PEP 594.
This commit is contained in:
Brett Cannon 2022-04-08 17:15:35 -07:00 committed by GitHub
parent 1c8b3b5d66
commit cd29bd13ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 7 deletions

View file

@ -31,8 +31,12 @@ import tempfile
import time
import tokenize
import traceback
import warnings
from html import escape as html_escape
warnings._deprecated(__name__, remove=(3, 13))
def reset():
"""Return a string that resets the CGI and browser to a known state."""
return '''<!--: spam