diff --git a/priority_queue.py b/priority_queue.py index e192908..9bc9135 100644 --- a/priority_queue.py +++ b/priority_queue.py @@ -14,7 +14,7 @@ def pop(self): self._sift_down(0) return item elif len(self.heap) == 1: - priority, item = self.heap.pop() + _, item = self.heap.pop() return item else: return None