8000 MNT Remove obsolete code (Python >= 3.7) (#21092) · scikit-learn/scikit-learn@a8b7c59 · GitHub
[go: up one dir, main page]

Skip to content

Commit a8b7c59

Browse files
DimitriPapadopoulosglemaitre
authored andcommitted
MNT Remove obsolete code (Python >= 3.7) (#21092)
1 parent d7dcdd0 commit a8b7c59

File tree

4 files changed

+0
-69
lines changed

4 files changed

+0
-69
lines changed

sklearn/externals/_pep562.py

Lines changed: 0 additions & 58 deletions
This file was deleted.

sklearn/impute/tests/test_impute.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import division
2-
31
import pytest
42

53
import numpy as np

sklearn/neighbors/_nca.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
# John Chiotellis <ioannis.chiotellis@in.tum.de>
88
# License: BSD 3 clause
99

10-
from __future__ import print_function
11-
1210
from warnings import warn
1311
import numpy as np
1412
import sys

sklearn/tests/test_docstring_parameters.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from sklearn.utils.estimator_checks import _enforce_estimator_tags_x
2222
from sklearn.utils.estimator_checks import _construct_instance
2323
from sklearn.utils.deprecation import _is_deprecated
24-
from sklearn.externals._pep562 import Pep562
2524
from sklearn.datasets import make_classification
2625
from sklearn.linear_model import LogisticRegression
2726
from sklearn.preprocessing import FunctionTransformer
@@ -162,12 +161,6 @@ def test_tabs():
162161
# because we don't import
163162
mod = importlib.import_module(modname)
164163

165-
# TODO: Remove when minimum python version is 3.7
166-
# unwrap to get module because Pep562 backport wraps the original
167-
# module
168-
if isinstance(mod, Pep562):
169-
mod = mod._module
170-
171164
try:
172165
source = inspect.getsource(mod)
173166
except IOError: # user probably should have run "make clean"

0 commit comments

Comments
 (0)
0