mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
e332555596
This is slated for removal in python 3.10, see https://www.python.org/dev/peps/pep-0594/#cgi. We currently only use it for three things: - escape_html in old python versions that didn't have that in the html module - Parsing multipart/form-data - Figuring out the charset for json We keep the first one - if loading escape_html from html fails we fall back to cgi. We remove the second - I can't find any case where we use multipart/form-data. Any place we post data we either explicitly pass application/x-www-form-urlencoded or implicitly use application/json. The third is the tricky bit. This drops charset detection under the assumption that we're never going to encounter anything other than utf-8 (or ascii, which is a utf-8 subset). I'm not sure that holds, but if it doesn't we can just add a regex to parse the charset. |
||
---|---|---|
.. | ||
web_config | ||
create_manpage_completions.py | ||
deroff.py |