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 f60a16c

Browse filesBrowse files
committed
Add __version_info__ as a tuple-based version identifier
1 parent e69e2e6 commit f60a16c
Copy full SHA for f60a16c

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-0
lines changed

‎lib/matplotlib/__init__.py

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@
115115
# this is computed based on the number of commits since the last tag.
116116
from ._version import get_versions
117117
__version__ = str(get_versions()['version'])
118+
__version_info__ = tuple(map(int, __version__.split('.post')[0].split('.')))
119+
118120
del get_versions
119121

120122
_log = logging.getLogger(__name__)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.