summaryrefslogtreecommitdiff
path: root/Lib/io.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-04-14 21:30:21 +0000
committerBenjamin Peterson <benjamin@python.org>2008-04-14 21:30:21 +0000
commit9efcc4b3196b9f7c3789468658a1a5017e787534 (patch)
treec96eb3de70c1f6bc3a2756c65f9e03a4a024f64f /Lib/io.py
parente0313f20c0a2e394b8e9606f415316f73c840a16 (diff)
downloadcpython-git-9efcc4b3196b9f7c3789468658a1a5017e787534.tar.gz
Fix problems in the io docs noted by Alexandre Vassalotti
Diffstat (limited to 'Lib/io.py')
-rw-r--r--Lib/io.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/Lib/io.py b/Lib/io.py
index 30b256f1fa..a308ac4300 100644
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -1,5 +1,4 @@
-"""
-The io module provides the Python interfaces to stream handling. The
+"""The io module provides the Python interfaces to stream handling. The
builtin open function is defined in this module.
At the top of the I/O hierarchy is the abstract base class IOBase. It
@@ -78,8 +77,7 @@ class BlockingIOError(IOError):
def open(file, mode="r", buffering=None, encoding=None, errors=None,
newline=None, closefd=True):
- r"""
- Open file and return a stream. If the file cannot be opened, an
+ r"""Open file and return a stream. If the file cannot be opened, an
IOError is raised.
file is either a string giving the name (and the path if the file
@@ -287,8 +285,7 @@ class UnsupportedOperation(ValueError, IOError):
class IOBase(metaclass=abc.ABCMeta):
- """
- The abstract base class for all I/O classes, acting on streams of
+ """The abstract base class for all I/O classes, acting on streams of
bytes. There is no public constructor.
This class provides dummy implementations for many methods that
@@ -793,7 +790,7 @@ class BytesIO(BufferedIOBase):
return bytes(b)
def read1(self, n):
- """In BytesIO, this is the same as read.
+ """This is the same as read.
"""
return self.read(n)