Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 48f5523

Browse files
committed
Yet another improvement in the fix for #32355
1 parent 3e5ac7d commit 48f5523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/tensor/modules/comp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2190,7 +2190,7 @@ def contract(self, *args):
21902190
# Pairs of indices tuples for the contraction:
21912191
ind_pairs = []
21922192
for ind_s in self.index_generator():
2193-
ind_o = [None for i in range(ncontr)]
2193+
ind_o = [None] * ncontr
21942194
for pos_s, pos_o in contractions:
21952195
ind_o[pos_o] = ind_s[pos_s]
21962196
ind_pairs.append((ind_s, ind_o))

0 commit comments

Comments
 (0)