Antoine Pitrou added the comment: Rishi, thanks for the patch. I was going to give a review but first I have to ask: is so much support code necessary for this?
Another approach would be to wrap self.fp in a io.BufferedReader (if it's not already buffered) and then use the peek() method to find the boundary without advancing the file pointer. ---------- nosy: +serhiy.storchaka stage: needs patch -> patch review versions: +Python 3.5 -Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1610654> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com