Merge pull request #682 from RobinD42/fix-issue677

Replace use of old cmp() function
This commit is contained in:
Robin Dunn
2018-01-11 20:39:06 -08:00
committed by GitHub

View File

@@ -5917,7 +5917,9 @@ class CustomTreeCtrl(wx.ScrolledWindow):
:note: The base class version compares items alphabetically.
"""
return cmp(self.GetItemText(item1), self.GetItemText(item2))
a = self.GetItemText(item1)
b = self.GetItemText(item2)
return (a > b) - (a < b) # equivalent to old cmp function
def SortChildren(self, item):