Skip to content

Commit 176852b

Browse files
committed
Incorporate cgi.FieldStorage into Webware
Since the cgi module has been deprecated in Python 3.11, we incorporate the cgi.FieldStorage into the WebUtils package. This also allows us to make the necessary modifications and patches directly in the code instead of implementing them in a subclass which was brittle and broke several times. This way Webware will keep full backward compatibility. In a future version, Request.FieldStorage() could be removed and fields could be provided via the multipart package.
1 parent 0689a92 commit 176852b

File tree

5 files changed

+1065
-107
lines changed

5 files changed

+1065
-107
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
'Pygments>=2.12,<3', 'Pillow>=8,<10'
2323
]
2424
requireTests = [
25-
'psutil>=5.9,<6', 'flake8>=4,<5', 'pylint>=2.14,<3', 'tox>=3.25,<4',
25+
'psutil>=5.9,<6', 'flake8>=4,<5', 'pylint>=2.13.9,<3', 'tox>=3.25,<4',
2626
'pywin32>=300,<400;'
2727
'sys_platform=="win32" and implementation_name=="cpython"'
2828
] + requireDev + requireDocs + requireExamples

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ envlist = py{36,37,38,39,310}, pypy3, flake8, pylint, docs, manifest
33

44
[testenv:flake8]
55
basepython = python3.9
6-
deps = flake8>=4,<5
6+
deps = flake8>=4.0.1,<5
77
commands =
88
flake8 webware setup.py
99

1010
[testenv:pylint]
1111
basepython = python3.9
12-
deps = pylint>=2.14,<3
12+
deps = pylint>=2.14.4,<3
1313
commands =
1414
pylint webware
1515

0 commit comments

Comments
 (0)