Skip to content

Commit ba35b10

Browse files
committed
src/sage/modular/modform/ring.py: fix bad spacing in dictionaries
1 parent f3c6b0d commit ba35b10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/modular/modform/ring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def _generators_variables_dictionnary(self, poly_parent, gens):
397397
nb_gens = self.ngens()
398398
if nb_var != nb_gens:
399399
raise ValueError('the number of variables (%s) must be equal to the number of generators of the modular forms ring (%s)'%(nb_var, self.ngens()))
400-
return {poly_parent.gen(i) : self(gens[i]) for i in range(0, nb_var)}
400+
return {poly_parent.gen(i): self(gens[i]) for i in range(0, nb_var)}
401401

402402
def from_polynomial(self, polynomial, gens=None):
403403
r"""
@@ -518,7 +518,7 @@ def _element_constructor_(self, forms_datum):
518518
forms_dictionary = forms_datum._forms_dictionary
519519
elif is_ModularFormElement(forms_datum):
520520
if self.group().is_subgroup(forms_datum.group()) and self.base_ring().has_coerce_map_from(forms_datum.base_ring()):
521-
forms_dictionary = {forms_datum.weight() : forms_datum}
521+
forms_dictionary = {forms_datum.weight(): forms_datum}
522522
else:
523523
raise ValueError('the group (%s) and/or the base ring (%s) of the given modular form is not consistant with the base space: %s'%(forms_datum.group(), forms_datum.base_ring(), self))
524524
elif forms_datum in self.base_ring():

0 commit comments

Comments
 (0)