]> granicus.if.org Git - python/commitdiff
Fix typo.
authorWalter Dörwald <walter@livinglogic.de>
Tue, 29 May 2007 19:13:29 +0000 (19:13 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Tue, 29 May 2007 19:13:29 +0000 (19:13 +0000)
Lib/io.py

index 3fcab6b6939e13dfd5c97fb89583151642a40c53..3914c9f0ea616232e23dcb399c2f3341dd5e7056 100644 (file)
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -636,7 +636,7 @@ class BufferedReader(_BufferedIOMixin):
         """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 @@ class BufferedReader(_BufferedIOMixin):
             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