Skip to content
Please note that GitHub no longer supports Internet Explorer.

We recommend upgrading to the latest Microsoft Edge, Google Chrome, or Firefox.

Learn more
Permalink
Browse files

API Deprecate externals.six (#12916)

  • Loading branch information
qinhanmin2014 authored and jnothman committed Jan 27, 2019
1 parent 3207278 commit 60be46cd33a28d7ce1fe5f0bff70f540687e1200
@@ -3,8 +3,6 @@
from collections import defaultdict
from time import time

import six

import numpy as np
from numpy import random as nr

@@ -9,8 +9,6 @@
import sys
from time import time

import six

import numpy as np

from sklearn.linear_model import lars_path, orthogonal_mp
@@ -7,8 +7,6 @@
import numpy as np
from collections import defaultdict

import six

from scipy.linalg import svd
from sklearn.utils.extmath import randomized_svd
from sklearn.datasets.samples_generator import make_low_rank_matrix
@@ -91,6 +91,12 @@ Support for Python 3.4 and below has been officially dropped.
with the document and the caller functions.
:issue:`6463` by :user:`movelikeriver <movelikeriver>`.

:mod:`sklearn.externals`
........................

- |API| Deprecated :mod:`externals.six` since we have dropped support for
Python 2.7. :issue:`12916` by :user:`Hanmin Qin <qinhanmin2014>`.

:mod:`sklearn.linear_model`
...........................

@@ -24,6 +24,12 @@
import sys
import types

import warnings
warnings.warn("The module is deprecated in version 0.21 and will be removed "
"in version 0.23 since we've dropped support for Python 2.7. "
"Please rely on the official version of six "
"(https://pypi.org/project/six/).", DeprecationWarning)

__author__ = "Benjamin Peterson <benjamin@python.org>"
__version__ = "1.4.1"

0 comments on commit 60be46c

Please sign in to comment.
You can’t perform that action at this time.