From b7967ccb402d59a9652d0bc6bd80751d4d59ee1e Mon Sep 17 00:00:00 2001 From: Andrew Kuchling Date: Fri, 25 Apr 2014 09:29:30 -0400 Subject: [PATCH] #21225: copy docstrings from base classes --- Lib/io.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Lib/io.py b/Lib/io.py index 22832766c4..14384930c5 100644 --- a/Lib/io.py +++ b/Lib/io.py @@ -68,15 +68,16 @@ SEEK_END = 2 # version however. class IOBase(_io._IOBase): __metaclass__ = abc.ABCMeta + __doc__ = _io._IOBase.__doc__ class RawIOBase(_io._RawIOBase, IOBase): - pass + __doc__ = _io._RawIOBase.__doc__ class BufferedIOBase(_io._BufferedIOBase, IOBase): - pass + __doc__ = _io._BufferedIOBase.__doc__ class TextIOBase(_io._TextIOBase, IOBase): - pass + __doc__ = _io._TextIOBase.__doc__ RawIOBase.register(FileIO) -- 2.50.1