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 <[email protected]>
<http://bugs.python.org/issue23801>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com