Skip to content

Commit

Permalink
some typos in utils.py (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
thesagarsehgal authored and antmarakis committed Jan 25, 2019
1 parent 25c2a9b commit 4fd3ef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand All @@ -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]
Expand Down

0 comments on commit 4fd3ef5

Please sign in to comment.