From 2595bfae547fb12866b7383cc3746d8860dd960c Mon Sep 17 00:00:00 2001 From: ddangcong80 <154437678+ddangcong80@users.noreply.github.com> Date: Sun, 17 Mar 2024 22:08:43 +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 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