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

Commit

Permalink
src/sage/rings/real_double.pyx: Replace cimport from cypari.convert b…
Browse files Browse the repository at this point in the history
…y method-local import
  • Loading branch information
mkoeppe committed Oct 22, 2021
1 parent c896669 commit 2cc2fa7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sage/rings/real_double.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ gsl_set_error_handler_off()

import math, operator

from cypari2.convert cimport new_gen_from_double

import sage.rings.integer
import sage.rings.rational

Expand Down Expand Up @@ -1669,6 +1667,7 @@ cdef class RealDoubleElement(FieldElement):
sage: RDF(1.5).__pari__()
1.50000000000000
"""
from cypari2.convert import new_gen_from_double
return new_gen_from_double(self._value)


Expand Down

0 comments on commit 2cc2fa7

Please sign in to comment.