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

antoine.pitrou python-checkins at python.org
Tue Apr 29 00:21:05 CEST 2014


http://hg.python.org/cpython/rev/6e23afdee4e4
changeset:   90487:6e23afdee4e4
branch:      2.7
parent:      90473:0c8a7299c7e3
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 |  7 ++++---
  1 files changed, 4 insertions(+), 3 deletions(-)


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

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


More information about the Python-checkins mailing list