diff options
Diffstat (limited to 'MgaRepo/svn.py')
-rw-r--r-- | MgaRepo/svn.py | 7 |
1 files changed, 5 insertions, 2 deletions
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): |