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

Commit

Permalink
Yet another improvement in the fix for #32355
Browse files Browse the repository at this point in the history
  • Loading branch information
egourgoulhon committed Aug 14, 2021
1 parent 3e5ac7d commit 48f5523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/tensor/modules/comp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2190,7 +2190,7 @@ def contract(self, *args):
# Pairs of indices tuples for the contraction:
ind_pairs = []
for ind_s in self.index_generator():
ind_o = [None for i in range(ncontr)]
ind_o = [None] * ncontr
for pos_s, pos_o in contractions:
ind_o[pos_o] = ind_s[pos_s]
ind_pairs.append((ind_s, ind_o))
Expand Down

0 comments on commit 48f5523

Please sign in to comment.