Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit b7cd5cb

Browse files
committedApr 11, 2016
Trac 20062: improvements related to imports
1 parent 5e5748b commit b7cd5cb

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed
 

‎src/sage/rings/power_series_poly.pyx

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ from power_series_ring_element cimport PowerSeries
99
from sage.structure.element cimport Element, ModuleElement, RingElement
1010
from infinity import infinity, is_Infinite
1111
from sage.libs.all import PariError
12-
from power_series_ring_element import is_PowerSeries
13-
import rational_field
1412
from sage.misc.superseded import deprecated_function_alias
1513

1614
cdef class PowerSeries_poly(PowerSeries):

‎src/sage/rings/power_series_ring_element.pyx

+2-3
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ import rational_field, integer_ring
108108
from integer import Integer
109109
from sage.rings.finite_rings.integer_mod_ring import IntegerModRing
110110
from sage.libs.pari.all import pari
111-
from sage.misc.superseded import deprecated_function_alias
111+
from sage.misc.superseded import deprecated_function_alias, deprecation
112+
from warnings import warn
112113

113114
from sage.categories.fields import Fields
114115
_Fields = Fields()
@@ -1059,11 +1060,9 @@ cdef class PowerSeries(AlgebraElement):
10591060
"""
10601061
try:
10611062
q, r = self.quo_rem(denom)
1062-
from warnings import warn
10631063
warn("the operator // now returns the Euclidean quotient for power series over fields, use / for the true quotient")
10641064
return q
10651065
except (AttributeError, NotImplementedError):
1066-
from sage.misc.superseded import deprecation
10671066
deprecation(20062, "the operator // is deprecated for power series over non-fields, use / instead")
10681067
return self._div_(denom)
10691068

0 commit comments

Comments
 (0)
This repository has been archived.