[issue23801] cgi.FieldStorage has different (wrong?) behavior on Python3 than Python2

Benjamin Peterson report at bugs.python.org
Sun Mar 29 16:27:31 CEST 2015


Benjamin Peterson added the comment:

The loop might be more elegantly expressed as

for line in self.fp:
    self.bytes_read += len(line)
    if line.strip() != b"--" + self.innerboundary:
        break

but otherwise lgtm

----------
nosy: +benjamin.peterson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23801>
_______________________________________


More information about the Python-bugs-list mailing list