[Python-3000-checkins] r55650 - python/branches/py3k-struni/Lib/io.py

walter.doerwald python-3000-checkins at python.org
Tue May 29 21:13:31 CEST 2007


Author: walter.doerwald
Date: Tue May 29 21:13:29 2007
New Revision: 55650

Modified:
   python/branches/py3k-struni/Lib/io.py
Log:
Fix typo.


Modified: python/branches/py3k-struni/Lib/io.py
==============================================================================
--- python/branches/py3k-struni/Lib/io.py	(original)
+++ python/branches/py3k-struni/Lib/io.py	Tue May 29 21:13:29 2007
@@ -636,7 +636,7 @@
         """Read n bytes.
 
         Returns exactly n bytes of data unless the underlying raw IO
-        stream reaches EOF of if the call would block in non-blocking
+        stream reaches EOF or if the call would block in non-blocking
         mode. If n is negative, read until EOF or until read() would
         block.
         """
@@ -647,6 +647,7 @@
             to_read = max(self.buffer_size,
                           n if n is not None else 2*len(self._read_buf))
             current = self.raw.read(to_read)
+            print(to_read, repr(current))
             if current in (b"", None):
                 nodata_val = current
                 break


More information about the Python-3000-checkins mailing list