Commits

mattip committed ecc6b06

add default value

  • Participants
  • Parent commits 0681a12

Comments (0)

Files changed (1)

File rpython/rlib/streamio.py

         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"):