From a7e929bece1231efb6fcf0450204aafd014f6571 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Tue, 27 Oct 2015 20:53:59 +0100 Subject: Replace compare function for SVNLogEntry --- MgaRepo/svn.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'MgaRepo/svn.py') diff --git a/MgaRepo/svn.py b/MgaRepo/svn.py index ce5fccd..9c45aab 100644 --- a/MgaRepo/svn.py +++ b/MgaRepo/svn.py @@ -15,8 +15,11 @@ class SVNLogEntry: self.changed = [] self.lines = [] - def __cmp__(self, other): - return cmp(self.date, other.date) + def __lt__(self, other): + return (self.date > other.date) + + def __eq__(self,other): + return (self.date == other.date) class SVN: def _execsvn(self, *args, **kwargs): -- cgit v1.2.1