Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f2c4fce

Browse filesBrowse files
committed
Deprecate compare_versions.
It is only internally used by the deprecated checkdep_ghostscript.
1 parent 1956b1d commit f2c4fce
Copy full SHA for f2c4fce

File tree

Expand file treeCollapse file tree

2 files changed

+5
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-0
lines changed
+4Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.