diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2015-10-27 20:53:59 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2015-10-27 20:53:59 +0100 |
commit | a7e929bece1231efb6fcf0450204aafd014f6571 (patch) | |
tree | 0b32cb61a7a67bd92879a74d150158a971e2a24c | |
parent | 7349895c380a6ca31c343a9eabf45bf9671a6dff (diff) | |
download | mgarepo-a7e929bece1231efb6fcf0450204aafd014f6571.tar mgarepo-a7e929bece1231efb6fcf0450204aafd014f6571.tar.gz mgarepo-a7e929bece1231efb6fcf0450204aafd014f6571.tar.bz2 mgarepo-a7e929bece1231efb6fcf0450204aafd014f6571.tar.xz mgarepo-a7e929bece1231efb6fcf0450204aafd014f6571.zip |
Replace compare function for SVNLogEntry
-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): |