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

Remove self-referential import.

parent f1f75071
...@@ -34,7 +34,6 @@ import abc ...@@ -34,7 +34,6 @@ import abc
import sys import sys
import codecs import codecs
import _fileio import _fileio
import io
import warnings import warnings
# open() uses st_blksize whenever we can # open() uses st_blksize whenever we can
...@@ -1031,7 +1030,7 @@ class TextIOWrapper(TextIOBase): ...@@ -1031,7 +1030,7 @@ class TextIOWrapper(TextIOBase):
if encoding is None: if encoding is None:
try: try:
encoding = os.device_encoding(buffer.fileno()) encoding = os.device_encoding(buffer.fileno())
except (AttributeError, io.UnsupportedOperation): except (AttributeError, UnsupportedOperation):
pass pass
if encoding is None: if encoding is None:
try: 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