[pypy-commit] pypy default: add default value

mattip noreply at buildbot.pypy.org
Mon Jun 16 22:38:12 CEST 2014


Author: mattip <matti.picus at 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"):


More information about the pypy-commit mailing list