diff --git a/python/28_binary_heap/binary_heap_sort.py b/python/28_binary_heap/binary_heap_sort.py index edfd86b..f0506d4 100644 --- a/python/28_binary_heap/binary_heap_sort.py +++ b/python/28_binary_heap/binary_heap_sort.py @@ -22,7 +22,7 @@ class BinaryHeapSort(BinaryHeap): if length <= 1: return - map(self._type_assert, nums) + self._type_assert(nums) # heapify self._heapify(nums, length-1)