[Python-checkins] cpython (3.4): #21225: copy docstrings from base classes

andrew.kuchling python-checkins at python.org
Fri Apr 25 15:29:46 CEST 2014


http://hg.python.org/cpython/rev/e33a036fd784
changeset:   90457:e33a036fd784
branch:      3.4
parent:      90451:901b9afc918e
user:        Andrew Kuchling <amk at amk.ca>
date:        Fri Apr 25 09:29:30 2014 -0400
summary:
  #21225: copy docstrings from base classes

files:
  Lib/io.py |  8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Lib/io.py b/Lib/io.py
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -70,16 +70,16 @@
 # 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)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list