Antoine Pitrou <[email protected]> added the comment: > Nadeem Vawda <[email protected]> added the comment: > > > Is following change in GzipFile class enough: > > > > def read1(self, n): > > return self.read(n) > > > > ? This satisfies TextIOWrapper to run readline correctly. > > Looks good to me.
Well, ideally, read1() should satisfy the condition stated in the BufferedIOBase documentation - namely, that it issues at most one read() call on the underlying stream. ---------- _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue10791> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
