Deprecate unused functions in cbook. #7568

Merged
merged 1 commit into from Dec 19, 2016

Conversation

Projects
5 participants
Contributor

anntzer commented Dec 5, 2016

I think most of the deprecations I propose should be pretty uncontroversial, but feel free to argue otherwise. Let's see whether we can work on reducing the old API...

lib/matplotlib/cbook.py
@@ -2569,6 +2607,7 @@ def normalize_kwargs(kw, alias_mapping=None, required=(), forbidden=(),
return ret
+@deprecated('2.0')
@tacaswell

tacaswell Dec 5, 2016

Owner

This one should be use in the pandas support code...

@anntzer

anntzer Dec 5, 2016

Contributor

Restored.

tacaswell added this to the 2.1 (next point release) milestone Dec 5, 2016

Owner

tacaswell commented Dec 5, 2016

Given that we just did an rc without these, I think they should target 2.1 instead of 2.0.

Contributor

NelleV commented Dec 5, 2016

I actually think that everything currently tagged 2.0.1 that isn't a major bug should target 2.1

Contributor

dopplershift commented Dec 5, 2016

@NelleV Agree, except scratch the work 'major'. Any bugfix should target the next bugfix release.

Contributor

anntzer commented Dec 5, 2016

Sounds fair.

@anntzer anntzer Deprecate unused functions in cbook.
d85e2b7

NelleV changed the title from Deprecate unused functions in cbook. to [MRG+1] Deprecate unused functions in cbook. Dec 19, 2016

Contributor

NelleV commented Dec 19, 2016

This is long overdue… Thanks for tackling this @anntzer !

@NelleV

NelleV approved these changes Dec 19, 2016

@@ -931,6 +952,7 @@ def xlat(self, text):
return self._make_regex().sub(self, text)
+@deprecated('2.1')
def soundex(name, len=4):
@QuLogic

QuLogic Dec 19, 2016

Member

What in the world did we need this for?

@tacaswell

tacaswell Dec 20, 2016

Owner

Dates back to e34a333 (Sept 2004!). Presumably John used this for something....

QuLogic changed the title from [MRG+1] Deprecate unused functions in cbook. to Deprecate unused functions in cbook. Dec 19, 2016

@QuLogic QuLogic merged commit a15d5c8 into matplotlib:master Dec 19, 2016

2 of 3 checks passed

continuous-integration/appveyor/pr AppVeyor build failed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage decreased (-0.008%) to 61.929%
Details

anntzer deleted the anntzer:deprecate-unused-cbook branch Dec 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment