commit:     4c08c57f337abba1f6f4fe678bfa2a0cab569b7a
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 13 13:33:00 2015 +0000
Commit:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Mon Jul 13 13:33:02 2015 +0000
URL:        https://gitweb.gentoo.org/proj/layman.git/commit/?id=4c08c57f

xml_db.py: Removes unnecessary __eq__ and __ne__ functions

These functions are in the DbBase class and will continue to be used
in that class. As such there's no need for any DBHandler class to
include them in their code.

 layman/db_modules/xml_db/xml_db.py | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/layman/db_modules/xml_db/xml_db.py 
b/layman/db_modules/xml_db/xml_db.py
index 6348162..38a19d2 100644
--- a/layman/db_modules/xml_db/xml_db.py
+++ b/layman/db_modules/xml_db/xml_db.py
@@ -86,17 +86,6 @@ class DBHandler(object):
         self.output.debug('Initializing XML overlay list handler', 8)
 
 
-    def __eq__(self, other):
-        for key in set(self.overlays.keys()) | set(other.overlays.keys()):
-            if self.overlays[key] != other.overlays[key]:
-                return False
-        return True
-
-
-    def __ne__(self, other):
-        return not self.__eq__(other)
-
-
     def _broken_catalog_hint(self):
         this_function_name = sys._getframe().f_code.co_name
 

Reply via email to