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

Skip to content

Commit 8982026

Browse files
authored
Merge pull request #9228 from tacaswell/fix_wx_versioncheck_lpy
FIX: use str (not unicode) to ensure comparison works on python2
2 parents fa24e8c + 0c66232 commit 8982026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/wx_compat.py

Lines 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) >= "4.0.0b2":
156+
if not is_phoenix or LooseVersion(wx.VERSION_STRING) >= str("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)