Berker Peksag added the comment: The attached patch(cgi.patch) doesn't fix the problem for me: cgi-bug.py still fails with a TypeError. Here is a patch with a test to fix the problem.
With issue20504.diff applied: $ ./python t.py 5 (Only changed the "assert len(fields["my-arg"].file.read()) == 5" line with "print(len(fields["my-arg"].file.read()))") ---------- nosy: +berker.peksag stage: -> patch review versions: +Python 3.6 -Python 3.3 Added file: http://bugs.python.org/file40833/issue20504.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20504> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com