diff -r bc71b19b45ff -r f713566d5d01 controls/IDBrowser.py --- a/controls/IDBrowser.py Fri Oct 28 15:19:24 2022 +0800 +++ b/controls/IDBrowser.py Fri Oct 28 17:01:10 2022 +0800 @@ -4,6 +4,7 @@ # See COPYING file for copyrights details. +from operator import eq import wx import wx.dataview as dv import PSKManagement as PSK @@ -43,9 +44,9 @@ row1 = self.GetRow(item1) row2 = self.GetRow(item2) if col == 0: - return cmp(int(self.data[row1][col]), int(self.data[row2][col])) + return eq(int(self.data[row1][col]), int(self.data[row2][col])) else: - return cmp(self.data[row1][col], self.data[row2][col]) + return eq(self.data[row1][col], self.data[row2][col]) def DeleteRows(self, rows): rows = list(rows)