httpx
httpx copied to clipboard
Replace cgi which will be deprecated in Python 3.11
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.
There is another use in test_multipart.py actually.
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.