]> granicus.if.org Git - python/commitdiff
#21225: copy docstrings from base classes
authorAndrew Kuchling <amk@amk.ca>
Fri, 25 Apr 2014 13:29:30 +0000 (09:29 -0400)
committerAndrew Kuchling <amk@amk.ca>
Fri, 25 Apr 2014 13:29:30 +0000 (09:29 -0400)
Lib/io.py

index 22832766c4cc91f06bf39080f3a3b1836e81622b..14384930c5ce3cd1753ce5f255bdafeecc39a4d2 100644 (file)
--- 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)