mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-47061: deprecate cgi and cgitb (GH-32410)
Part of PEP 594.
This commit is contained in:
parent
1c8b3b5d66
commit
cd29bd13ef
8 changed files with 28 additions and 7 deletions
|
@ -1,4 +1,3 @@
|
|||
import cgi
|
||||
import os
|
||||
import sys
|
||||
import tempfile
|
||||
|
@ -8,6 +7,9 @@ from io import StringIO, BytesIO
|
|||
from test import support
|
||||
from test.support import warnings_helper
|
||||
|
||||
cgi = warnings_helper.import_deprecated("cgi")
|
||||
|
||||
|
||||
class HackedSysModule:
|
||||
# The regression test will have real values in sys.argv, which
|
||||
# will completely confuse the test of the cgi module
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue