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]
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: