[Python-3000-checkins] r58418 - python/branches/py3k/Lib/io.py

brett.cannon python-3000-checkins at python.org
Fri Oct 12 01:08:53 CEST 2007


Author: brett.cannon
Date: Fri Oct 12 01:08:53 2007
New Revision: 58418

Modified:
   python/branches/py3k/Lib/io.py
Log:
Remove self-referential import.


Modified: python/branches/py3k/Lib/io.py
==============================================================================
--- python/branches/py3k/Lib/io.py	(original)
+++ python/branches/py3k/Lib/io.py	Fri Oct 12 01:08:53 2007
@@ -34,7 +34,6 @@
 import sys
 import codecs
 import _fileio
-import io
 import warnings
 
 # open() uses st_blksize whenever we can
@@ -1031,7 +1030,7 @@
         if encoding is None:
             try:
                 encoding = os.device_encoding(buffer.fileno())
-            except (AttributeError, io.UnsupportedOperation):
+            except (AttributeError, UnsupportedOperation):
                 pass
             if encoding is None:
                 try:


More information about the Python-3000-checkins mailing list