|
77 | 77 | # ****************************************************************************
|
78 | 78 | from __future__ import annotations
|
79 | 79 | from sage.misc.cachefunc import cached_method
|
80 |
| -from sage.misc.superseded import (deprecation, |
81 |
| - deprecated_function_alias) |
| 80 | +from sage.misc.superseded import deprecation |
82 | 81 |
|
83 | 82 |
|
84 | 83 | import sage.libs.ntl.all as ntl
|
|
109 | 108 | from .class_group import SClassGroup
|
110 | 109 |
|
111 | 110 | from sage.structure.element import is_Element
|
| 111 | +from sage.structure.parent import Parent |
112 | 112 | from sage.structure.sequence import Sequence
|
113 | 113 | from sage.structure.factorization import Factorization
|
114 | 114 | from sage.structure.category_object import normalize_names
|
@@ -210,7 +210,6 @@ def proof_flag(t):
|
210 | 210 | import sage.groups.abelian_gps.abelian_group
|
211 | 211 | import sage.rings.complex_interval_field
|
212 | 212 |
|
213 |
| -from sage.structure.parent_gens import ParentWithGens |
214 | 213 | from sage.structure.factory import UniqueFactory
|
215 | 214 | from . import number_field_element
|
216 | 215 | from . import number_field_element_quadratic
|
@@ -1380,7 +1379,7 @@ def __init__(self, polynomial, name, latex_name,
|
1380 | 1379 | else:
|
1381 | 1380 | assert category.is_subcategory(default_category), "%s is not a subcategory of %s" % (category, default_category)
|
1382 | 1381 |
|
1383 |
| - ParentWithGens.__init__(self, QQ, name, category=category) |
| 1382 | + Parent.__init__(self, base=QQ, names=name, category=category) |
1384 | 1383 | if not isinstance(polynomial, polynomial_element.Polynomial):
|
1385 | 1384 | raise TypeError("polynomial (=%s) must be a polynomial" % repr(polynomial))
|
1386 | 1385 |
|
@@ -12762,7 +12761,6 @@ def _splitting_classes_gens_(K, m, d):
|
12762 | 12761 | """
|
12763 | 12762 | from sage.groups.abelian_gps.abelian_group import AbelianGroup
|
12764 | 12763 |
|
12765 |
| - R = K.ring_of_integers() |
12766 | 12764 | Zm = IntegerModRing(m)
|
12767 | 12765 | unit_gens = Zm.unit_gens()
|
12768 | 12766 | Zmstar = AbelianGroup(len(unit_gens), [x.multiplicative_order() for x in unit_gens])
|
|
0 commit comments