From a5312711d6476f25ee558d7f143fad64f6e1103b Mon Sep 17 00:00:00 2001 From: Sebastian Luther Date: Tue, 24 Aug 2010 20:30:12 +0200 Subject: [PATCH] ExtendedAtomDict: Add __eq__ --- pym/portage/dep/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pym/portage/dep/__init__.py b/pym/portage/dep/__init__.py index cd0087ad7..6b0f7f78c 100644 --- a/pym/portage/dep/__init__.py +++ b/pym/portage/dep/__init__.py @@ -1235,6 +1235,11 @@ class ExtendedAtomDict(portage.cache.mappings.MutableMapping): else: self._normal[cp] = val + def __eq__(self, other): + return self._value_class == other._value_class and \ + self._extended == other._extended and \ + self._normal == other._normal + def clear(self): self._extended.clear() self._normal.clear() -- 2.26.2