Skip to content

Commit 53a2250

Browse files
committed
Move import back to top level
1 parent a0b9e47 commit 53a2250

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/io.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
import _io
5454
import abc
5555

56+
from _collections_abc import _check_methods
5657
from _io import (DEFAULT_BUFFER_SIZE, BlockingIOError, UnsupportedOperation,
5758
open, open_code, FileIO, BytesIO, StringIO, BufferedReader,
5859
BufferedWriter, BufferedRWPair, BufferedRandom,
@@ -124,7 +125,6 @@ def read(self, size=..., /):
124125

125126
@classmethod
126127
def __subclasshook__(cls, C):
127-
from _collections_abc import _check_methods
128128
if cls is Reader:
129129
return _check_methods(C, "read")
130130
return NotImplemented
@@ -146,7 +146,6 @@ def write(self, data, /):
146146

147147
@classmethod
148148
def __subclasshook__(cls, C):
149-
from _collections_abc import _check_methods
150149
if cls is Writer:
151150
return _check_methods(C, "write")
152151
return NotImplemented

0 commit comments

Comments
 (0)