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

Commit

Permalink
git grep -l 'misc.all import' | xargs sed -i.bak 's/misc.all import s…
Browse files Browse the repository at this point in the history
…age_eval/misc.sage_eval import sage_eval/'
  • Loading branch information
Matthias Koeppe committed Dec 7, 2021
1 parent 5a8d76e commit 97b4dfd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/sage/modular/buzzard.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#############################################################################

from sage.interfaces.gp import Gp
from sage.misc.all import sage_eval
from sage.misc.sage_eval import sage_eval

_gp = None

Expand Down
2 changes: 1 addition & 1 deletion src/sage/rings/cfinite_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
from sage.structure.unique_representation import UniqueRepresentation

from sage.interfaces.gp import Gp
from sage.misc.all import sage_eval
from sage.misc.sage_eval import sage_eval

_gp = None

Expand Down
8 changes: 4 additions & 4 deletions src/sage/symbolic/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def evalunitdict():
sage: sage.symbolic.units.evalunitdict()
"""
from sage.misc.all import sage_eval
from sage.misc.sage_eval import sage_eval
for key, value in unitdict.items():
unitdict[key] = dict([(a,sage_eval(repr(b))) for a, b in value.items()])

Expand Down Expand Up @@ -978,7 +978,7 @@ def unit_derivations_expr(v):
Z = unit_derivations[v]
if isinstance(Z,str):
d = dict([(x,str_to_unit(x)) for x in vars_in_str(Z)])
from sage.misc.all import sage_eval
from sage.misc.sage_eval import sage_eval
Z = sage_eval(Z, d)
unit_derivations[v] = Z
return Z
Expand Down Expand Up @@ -1387,7 +1387,7 @@ def base_units(unit):
sage: sage.symbolic.units.base_units(var('x'))
x
"""
from sage.misc.all import sage_eval
from sage.misc.sage_eval import sage_eval
if str(unit) not in unit_to_type:
return unit
elif unit_to_type[str(unit)] == 'si_prefixes' or unit_to_type[str(unit)] == 'unit_multipliers':
Expand Down Expand Up @@ -1451,7 +1451,7 @@ def convert_temperature(expr, target):
if len(expr.variables()) != 1:
raise ValueError("Cannot convert")
elif target is None or unit_to_type[str(target)] == 'temperature':
from sage.misc.all import sage_eval
from sage.misc.sage_eval import sage_eval
expr_temp = expr.variables()[0]
coeff = expr/expr_temp
if target is not None:
Expand Down

0 comments on commit 97b4dfd

Please sign in to comment.