Py < 2.6 fix.
authorRobert Bradshaw <robertwb@math.washington.edu>
Wed, 3 Nov 2010 09:35:05 +0000 (02:35 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Wed, 3 Nov 2010 09:35:05 +0000 (02:35 -0700)
Cython/Utils.py

index d319ac063e12bf745f0242eed25a148fe7a50fb1..06c2295dc033fe9340a6c6c569f30e089b9fdc27 100644 (file)
@@ -115,7 +115,7 @@ class NormalisedNewlineStream(object):
     self.close = stream.close
     self.encoding = getattr(stream, 'encoding', 'UTF-8')
 
-  def read(self, count):
+  def read(self, count=-1):
     data = self._read(count)
     if u'\r' not in data:
       return data