diff rhodecode/lib/vcs/backends/base.py @ 3713:e45f8cefd7d9 beta

implement __ne__
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 08 Apr 2013 20:38:37 +0200
parents 5f9f4ece4b52
children 600ffde2634c
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():