From: Zac Medico Date: Sat, 21 May 2011 08:40:30 +0000 (-0700) Subject: Task.__eq__: allow _hash_key as input X-Git-Tag: v2.1.9.50~58 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2e54071b3ccd259a555f30f1cc32b2be9ef136d3;p=portage.git Task.__eq__: allow _hash_key as input This is used by depgraph._pkg() for lookups. --- diff --git a/pym/_emerge/Task.py b/pym/_emerge/Task.py index 3e1a4ba62..efbe3a99d 100644 --- a/pym/_emerge/Task.py +++ b/pym/_emerge/Task.py @@ -9,7 +9,9 @@ class Task(SlotObject): try: return self._hash_key == other._hash_key except AttributeError: - return False + # depgraph._pkg() generates _hash_key + # for lookups here, so handle that + return self._hash_key == other def __ne__(self, other): try: