mirror of
https://github.com/python/cpython.git
synced 2025-09-19 15:10:58 +00:00
Remove self-referential import.
This commit is contained in:
parent
f12088b9b3
commit
041683df42
1 changed files with 1 additions and 2 deletions
|
@ -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):
|
||||||
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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue