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 f85a6c1

Browse filesBrowse files
committed
Shorten line, remove 2nd LooseVersion in comparrison
1 parent 1f982fb commit f85a6c1
Copy full SHA for f85a6c1

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backends/wx_compat.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/wx_compat.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def _AddTool(parent, wx_ids, text, bmp, tooltip_text):
153153
else:
154154
add_tool = parent.DoAddTool
155155

156-
if not is_phoenix or LooseVersion(wx.VERSION_STRING) >= LooseVersion("4.0.0b2"):
156+
if not is_phoenix or LooseVersion(wx.VERSION_STRING) >= "4.0.0b2":
157157
# NOTE: when support for Phoenix prior to 4.0.0b2 is dropped then
158158
# all that is needed is this clause, and the if and else clause can
159159
# be removed.

0 commit comments

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