We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78409c3 commit 40200f2Copy full SHA for 40200f2
roundup/anypy/cgi_.py
@@ -1,7 +1,10 @@
1
# ruff: noqa: F401 - unused imports
2
+import warnings
3
try:
4
# used for python2 and python 3 < 3.13
- import cgi
5
+ with warnings.catch_warnings():
6
+ warnings.filterwarnings('ignore', category=DeprecationWarning)
7
+ import cgi
8
from cgi import FieldStorage, MiniFieldStorage
9
except ImportError:
10
# use for python3 >= 3.13
0 commit comments