Skip to content

Commit 0b2245a

Browse files
github-actionsgithub-actions
github-actions
authored and
github-actions
committed
fixup! Format Python code with psf/black push
1 parent 0d358b7 commit 0b2245a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

data_structures/data_structures/heap/heap_generic.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def _swap(self, i, j):
3030
"""Performs changes required for swapping two elements in the heap"""
3131
# First update the indexes of the items in index map.
3232
self.pos_map[self.arr[i][0]], self.pos_map[self.arr[j][0]] = (
33-
self.pos_map[self.arr[j][0]], self.pos_map[self.arr[i][0]]
33+
self.pos_map[self.arr[j][0]],
34+
self.pos_map[self.arr[i][0]],
3435
)
3536
# Then swap the items in the list.
3637
self.arr[i], self.arr[j] = self.arr[j], self.arr[i]

0 commit comments

Comments
 (0)