8000 MAINT CLN io.open() → open() (#26449) · scikit-learn/scikit-learn@1084860 · GitHub
[go: up one dir, main page]

Skip to c 8000 ontent

Commit 1084860

Browse files
MAINT CLN io.open() → open() (#26449)
1 parent 1415a28 commit 1084860

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sklearn/datasets/_svmlight_format_io.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
# License: BSD 3 clause
1717

1818
from contextlib import closing
19-
import io
2019
import os.path
2120

2221
import numpy as np
@@ -203,7 +202,7 @@ def get_data():
203202

204203
def _gen_open(f):
205204
if isinstance(f, int): # file descriptor
206-
return io.open(f, "rb", closefd=False)
205+
return open(f, "rb", closefd=False)
207206
elif isinstance(f, os.PathLike):
208207
f = os.fspath(f)
209208
elif not isinstance(f, str):

0 commit comments

Comments
 (0)
0