Skip to content

Commit af97e6d

Browse files
committed
replace wrong list comprehension
1 parent 55e5c2a commit af97e6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/combinat/partition.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2542,8 +2542,8 @@ def glaisher_franklin(self, s):
25422542
if not p % s:
25432543
mu.extend([p // s] * (m*s))
25442544
else:
2545-
mu.extend([p1]*v for i, v in enumerate(m.digits(s))
2546-
if (p1 := p * s**i))
2545+
for i, v in enumerate(m.digits(s)):
2546+
mu.extend([p * s**i]*v)
25472547

25482548
P = self.parent()
25492549
return P.element_class(P, sorted(mu, reverse=True))

0 commit comments

Comments
 (0)