diff --git a/priority_queue.py b/priority_queue.py index 6994ec7..e192908 100644 --- a/priority_queue.py +++ b/priority_queue.py @@ -10,7 +10,7 @@ def push(self, item, priority): def pop(self): if len(self.heap) > 1: self._swap(0, len(self.heap) - 1) - priority, item = self.heap.pop() + _, item = self.heap.pop() self._sift_down(0) return item elif len(self.heap) == 1: