Nadeem Vawda added the comment: Before these fixes, it looks like all three classes' peek() methods were susceptible to the same problem as read1().
The fixes for BZ2File.read1() and LZMAFile.read1() should have fixed peek() as well; both methods are implemented in terms of _fill_buffer(). For GzipFile, peek() is still potentially broken - I'll push a fix shortly. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15546> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com