Commit 306b851b authored by Brett Cannon's avatar Brett Cannon

Remove self-referential import.

parent f1f75071
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment