1. Pypy
  2. Untitled project
  3. pypy

Commits

Matti Picus  committed ecc6b06

add default value

  • Participants
  • Parent commits 0681a12
  • Branches default

Comments (0)

Files changed (1)

File rpython/rlib/streamio.py

View file
  • Ignore whitespace
         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"):