MRG Drop legacy python / remove six dependencies#12639
MRG Drop legacy python / remove six dependencies#12639rth merged 32 commits intoscikit-learn:masterfrom
Conversation
|
There is an issue open for this... |
|
Maybe not a PR. |
|
This is very WIP. I didn't think anyone else has started so I posted this so no-one else would. @jnothman did you mean someone else had started? |
|
Noone has as far as I know. The original issue is #11991 |
|
@amueller do we already want to do this now? There was a little bit discussion about that on the issue (#11991), so maybe answer there. |
|
I guess we can close, see #12746 |
|
I wouldn't close this one. This includes some much "harder" changes than the "easy" ones I've had in the other PR. I guess we thought of continuing this one after the CI is changed. |
|
I'll try and fix it "soon" ;) |
|
This should fix all comments, I think. Should we inherit from |
|
Hi, just wanted to say that I have removed Python 2 style super() calls in #12812, so that we don't accidentally duplicate work. |
|
This just gives me the feeling of a nice house de-cluttering right before the new year :) |
jnothman
left a comment
There was a problem hiding this comment.
@adrinjalali says this is like de-cluttering. Perhaps burning photos of an old lover with whom you had on-and-off trouble, but okay.
I think I'm happy with this!
sklearn/utils/murmurhash.pyx and sklearn/feature_extraction/_hashing.pyx still reference unicode, which should be removed. Otherwise LGTM
Currently, we are still using |
* replace six.with_metaclass(ABCMeta) by metaclass=ABCMeta * replace six.integer_types by int * replace six.string_types by str * correct email address
* replace six.with_metaclass(ABCMeta) by metaclass=ABCMeta * replace six.integer_types by int * replace six.string_types by str * correct email address
* replace six.with_metaclass(ABCMeta) by metaclass=ABCMeta * replace six.integer_types by int * replace six.string_types by str * rebase * correct email address
This continues the work done in #12639 on dropping the python 2 support by, - ~~removing unnecessary `from __future__` imports~~ - removing unused `sklearn.utils.fixes` assuming we can agree in #12927 that `sklearn.utils.fixes` are private as was stated e.g. in #6616 (comment)
|
OMG that's such a nice thing to come home to! Yay! (also lol at @jnothman's comment) |
This continues the work done in scikit-learn#12639 on dropping the python 2 support by, - ~~removing unnecessary `from __future__` imports~~ - removing unused `sklearn.utils.fixes` assuming we can agree in scikit-learn#12927 that `sklearn.utils.fixes` are private as was stated e.g. in scikit-learn#6616 (comment)
* replace six.with_metaclass(ABCMeta) by metaclass=ABCMeta * replace six.integer_types by int * replace six.string_types by str * rebase * correct email address
This continues the work done in scikit-learn#12639 on dropping the python 2 support by, - ~~removing unnecessary `from __future__` imports~~ - removing unused `sklearn.utils.fixes` assuming we can agree in scikit-learn#12927 that `sklearn.utils.fixes` are private as was stated e.g. in scikit-learn#6616 (comment)
Tries to drop legacy python (2.7) and remove six everywhere.