From 8d9662ca904cbf18d55cd5e349d5928847949da7 Mon Sep 17 00:00:00 2001 From: ddangcong80 <154437678+ddangcong80@users.noreply.github.com> Date: Sun, 17 Mar 2024 22:07:52 +0900 Subject: [PATCH] Update priority_queue.py --- priority_queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: