From: Andrew Kuchling Date: Fri, 25 Apr 2014 13:29:30 +0000 (-0400) Subject: #21225: copy docstrings from base classes X-Git-Tag: v3.4.1rc1~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86fe53e976435c22c6c73203c84fe9f1e7beaf4b;p=python #21225: copy docstrings from base classes --- diff --git a/Lib/io.py b/Lib/io.py index 39878b8337..8d68f1e424 100644 --- a/Lib/io.py +++ b/Lib/io.py @@ -70,16 +70,16 @@ SEEK_END = 2 # Method descriptions and default implementations are inherited from the C # version however. class IOBase(_io._IOBase, metaclass=abc.ABCMeta): - pass + __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)