Author: mattip <matti.pi...@gmail.com> Branch: Changeset: r72082:ecc6b0658fdb Date: 2014-06-16 23:27 +0300 http://bitbucket.org/pypy/pypy/changeset/ecc6b0658fdb/
Log: add default value diff --git a/rpython/rlib/streamio.py b/rpython/rlib/streamio.py --- a/rpython/rlib/streamio.py +++ b/rpython/rlib/streamio.py @@ -850,7 +850,7 @@ self.do_flush = base.flush_buffers self.lfbuffer = "" - def read(self, n): + def read(self, n=-1): data = self.lfbuffer + self.do_read(n) self.lfbuffer = "" if data.endswith("\r"): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit