Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 44952ed

Browse files
authored
Merge pull request #14009 from anntzer/compare_versions
Deprecate compare_versions.
2 parents 6fb906e + f2c4fce commit 44952ed

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Deprecations
2+
````````````
3+
``matplotlib.compare_versions`` is deprecated (use comparison of
4+
``distutils.version.LooseVersion``\s instead).

lib/matplotlib/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
}"""
168168

169169

170+
@cbook.deprecated("3.2")
170171
def compare_versions(a, b):
171172
"Return whether version *a* is greater than or equal to version *b*."
172173
if isinstance(a, bytes):

0 commit comments

Comments
 (0)