[Python-3000-checkins] r54733 - python/branches/p3yk/Lib/io.py

guido.van.rossum python-3000-checkins at python.org
Tue Apr 10 16:41:44 CEST 2007


Author: guido.van.rossum
Date: Tue Apr 10 16:41:39 2007
New Revision: 54733

Modified:
   python/branches/p3yk/Lib/io.py
Log:
BufferedIOBase and TextIOBase should derive from IOBase, not from RawIOBase!


Modified: python/branches/p3yk/Lib/io.py
==============================================================================
--- python/branches/p3yk/Lib/io.py	(original)
+++ python/branches/p3yk/Lib/io.py	Tue Apr 10 16:41:39 2007
@@ -354,7 +354,7 @@
         return self._sock.fileno()
 
 
-class BufferedIOBase(RawIOBase):
+class BufferedIOBase(IOBase):
 
     """Base class for buffered IO objects.
 
@@ -779,8 +779,7 @@
         return BufferedWriter.write(self, b)
 
 
-# XXX That's not the right base class
-class TextIOBase(BufferedIOBase):
+class TextIOBase(IOBase):
 
     """Base class for text I/O.
 


More information about the Python-3000-checkins mailing list