From aefaa5910129b31ec33e2dc02654e79e0611c351 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 21 May 2011 01:40:30 -0700 Subject: [PATCH] Task.__eq__: allow _hash_key as input This is used by depgraph._pkg() for lookups. --- pym/_emerge/Task.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- 2.26.2