Skip to content

Commit 3985bfc

Browse files
committed
fix new code
1 parent abc6c6c commit 3985bfc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sage/rings/polynomial/integer_valued_polynomials.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,11 +1206,12 @@ def variable_shift(self, k=1):
12061206
A = self.parent()
12071207

12081208
def on_basis(n):
1209-
return {A._indices(j): binomial(k, n - j) for j in range(n + 1)}
1209+
return {A._indices(j): binomial(k, n - j)
1210+
for j in range(n + 1)}
12101211

12111212
from sage.data_structures.blas_dict import linear_combination
12121213
mc = self._monomial_coefficients
1213-
ret = linear_combination((on_basis((index), coeff)
1214+
ret = linear_combination((on_basis(index), coeff)
12141215
for (index, coeff) in mc.items())
12151216
return A.element_class(A, ret)
12161217

0 commit comments

Comments
 (0)