diff --git a/src/sage/modular/quasimodform/ring.py b/src/sage/modular/quasimodform/ring.py index 53fcea616bd..dcdf8e470c2 100644 --- a/src/sage/modular/quasimodform/ring.py +++ b/src/sage/modular/quasimodform/ring.py @@ -822,6 +822,6 @@ def basis_of_weight(self, weight): basis += [f*E2_pow for f in M.modular_forms_of_weight(weight - 2*j).basis()] E2_pow *= E2 - if not weight%2: + if not weight % 2: basis.append(E2_pow) return basis