From: Sebastian Luther Date: Tue, 24 Aug 2010 18:30:12 +0000 (+0200) Subject: ExtendedAtomDict: Add __eq__ X-Git-Tag: v2.2_rc69~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a5312711d6476f25ee558d7f143fad64f6e1103b;p=portage.git ExtendedAtomDict: Add __eq__ --- 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()