From d872eccb65b8a71658972616a7b3837c5933a046 Mon Sep 17 00:00:00 2001 From: sagar-sehgal Date: Thu, 24 Jan 2019 10:45:59 +0530 Subject: [PATCH] some typos in utils.py --- utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index ab6aa1032..dec51d5e7 100644 --- a/utils.py +++ b/utils.py @@ -750,7 +750,7 @@ def __init__(self, order='min', f=lambda x: x): elif order == 'max': # now item with max f(x) self.f = lambda x: -f(x) # will be popped first else: - raise ValueError("order must be either 'min' or max'.") + raise ValueError("order must be either 'min' or 'max'.") def append(self, item): """Insert item at its correct position.""" @@ -762,7 +762,7 @@ def extend(self, items): self.append(item) def pop(self): - """Pop and return the item (with min or max f(x) value + """Pop and return the item (with min or max f(x) value) depending on the order.""" if self.heap: return heapq.heappop(self.heap)[1]