Skip to content

Commit fde39b9

Browse files
TestRDB.testParseAndQuery() from test_rdb.py was fixed for Py3
1 parent 2ee8143 commit fde39b9

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Xlib/rdb.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,14 @@ def __init__(self, path, dbs):
387387
self.skip = 1
388388
self.db = dbs
389389

390-
def __cmp__(self, other):
391-
return cmp(self.path, other.path)
390+
def __lt__(self, other):
391+
return self.path < other.path
392+
393+
def __gt__(self, other):
394+
return self.path > other.path
395+
396+
def __eq__(self, other):
397+
return self.path == other.path
392398

393399
def match_length(self):
394400
return len(self.path)

0 commit comments

Comments
 (0)