changeset 3713:e45f8cefd7d9 beta

implement __ne__
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 08 Apr 2013 20:38:37 +0200
parents 08cf7741e5e1
children 7e3d89d9d3a2
files rhodecode/lib/vcs/backends/base.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/vcs/backends/base.py	Mon Apr 08 02:59:50 2013 +0200
+++ b/rhodecode/lib/vcs/backends/base.py	Mon Apr 08 20:38:37 2013 +0200
@@ -84,6 +84,9 @@
         same_instance = isinstance(other, self.__class__)
         return same_instance and getattr(other, 'path', None) == self.path
 
+    def __ne__(self, other):
+        return not self.__eq__(other)
+
     @LazyProperty
     def alias(self):
         for k, v in settings.BACKENDS.items():