summaryrefslogtreecommitdiffstats
path: root/Lib/io.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-10-11 23:08:53 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-10-11 23:08:53 (GMT)
commit041683df428a42c8a01b68d79735b75d1d1dc111 (patch)
tree1be605e5742e710c5b9103d672215b1f92af972f /Lib/io.py
parentf12088b9b3d3a7219dce0acc607b7aa19b08765b (diff)
downloadcpython-041683df428a42c8a01b68d79735b75d1d1dc111.zip
cpython-041683df428a42c8a01b68d79735b75d1d1dc111.tar.gz
cpython-041683df428a42c8a01b68d79735b75d1d1dc111.tar.bz2
Remove self-referential import.
Diffstat (limited to 'Lib/io.py')
-rw-r--r--Lib/io.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/io.py b/Lib/io.py
index 7100278..68ee4df 100644
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -34,7 +34,6 @@ import abc
import sys
import codecs
import _fileio
-import io
import warnings
# open() uses st_blksize whenever we can
@@ -1031,7 +1030,7 @@ class TextIOWrapper(TextIOBase):
if encoding is None:
try:
encoding = os.device_encoding(buffer.fileno())
- except (AttributeError, io.UnsupportedOperation):
+ except (AttributeError, UnsupportedOperation):
pass
if encoding is None:
try: