Skip to content

MNT Remove six imports #15251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 21, 2019
Merged

MNT Remove six imports #15251

merged 2 commits into from
Oct 21, 2019

Conversation

rth
Copy link
Member

@rth rth commented Oct 14, 2019

The should no longer be a need for six since Python 2 was dropped (#11991) and it's mostly no longer used.

Follow-up on #12639

@adrinjalali
Copy link
Member

I vaguely remember a discussion around the fact that this was exposed in a "public" way, and therefore should be removed with a deprecation cycle.

@amueller
Copy link
Member

That's my memory as well.

@rth rth changed the title MNT Remove externals.six MNT Remove six imports Oct 20, 2019
@rth
Copy link
Member Author

rth commented Oct 20, 2019

[six] should be removed with a deprecation cycle.

You are right, there is actually a deprecation warning already raised on top of six, so it should be removed in 0.23.

Reverted that change and now this only removes a couple left-over six imports. Surprising that tests didn't fail on deprecation warnings there BTW.

@qinhanmin2014
Copy link
Member

qinhanmin2014 commented Oct 21, 2019

We've decided to deprecate externals.six, see #12916
We won't get a deprecation warning here because we import from six, not externals.six.

@qinhanmin2014 qinhanmin2014 merged commit c457c6a into scikit-learn:master Oct 21, 2019
@rth rth deleted the rm-six branch October 21, 2019 13:17
@rth
Copy link
Member Author

rth commented Oct 21, 2019

We won't get a deprecation warning here because we import from six, not externals.six.

Indeed. Why is it not failing then? six should not be in the list of dependencies (unless it's indirectly pulled by one of our dependencies).

@qinhanmin2014
Copy link
Member

Indeed. Why is it not failing then? six should not be in the list of dependencies (unless it's indirectly pulled by one of our dependencies).

I don't know, we need someone who is familiar with our CI :)
(but I guess you're right, i.e., six is installed by other packages, or by default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants