httpx icon indicating copy to clipboard operation
httpx copied to clipboard

Replace cgi which will be deprecated in Python 3.11

Open florimondmanca opened this issue 3 years ago • 1 comments

Prompted by https://github.com/encode/httpx/pull/2302 which surfaced a warning in the upcoming Python 3.11 as cgi is being deprecated as per PEP-594.

florimondmanca avatar Jul 14 '22 18:07 florimondmanca

There is another use in test_multipart.py actually.

j178 avatar Jul 15 '22 02:07 j178

Hi! Do you have a rough idea of when the next release of httpx might be that includes this change? We use error on warnings in tests, and so currently need to filter this out via pytest's filterwarnings when running on Python 3.11.

edmorley avatar Nov 09 '22 15:11 edmorley