mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-16 15:21:14 -03:00
In both in python2 and python3 parse_qs expects str object. In python2 it worked ok, because self.rfile was open in binary mode and str in python2 is actually a string of bytes. However in python3 str is actually string of unicode literals, not bytes and file was still open in binary mode. Thus, deleting any file with non-ascii byte inside filename failed in python3. Also, cgi.parse_qs is deprecated and shouldn't be used.