Commits

Michał Górny committed ea0909d

PMRepository: support '!=' and hashing.

  • Participants
  • Parent commits 494089c

Comments (0)

Files changed (1)

gentoopm/basepm/repo.py

 			return False
 		return self.name == other.name and self.path == other.path
 
+	def __ne__(self, other):
+		return not self.__eq__(other)
+
+	def __hash__(self):
+		return hash((self.name, self.path))
+
 	def __repr__(self):
 		return '%s(%s)' % (self.__class__.__name__, repr(self.name))