From 5e53333c7d9e74902bce58c1f548c8670c473ff3 Mon Sep 17 00:00:00 2001 From: Jonathan Kliem Date: Thu, 10 Dec 2020 11:09:06 +0100 Subject: [PATCH] Revert "lazy import polyhedra instances" This reverts commit 7dae2c0527dbc5919b6c73637cce8e4b11c21260. --- src/sage/geometry/polyhedron/parent.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/sage/geometry/polyhedron/parent.py b/src/sage/geometry/polyhedron/parent.py index a114ec993a1..72160195d1c 100644 --- a/src/sage/geometry/polyhedron/parent.py +++ b/src/sage/geometry/polyhedron/parent.py @@ -22,18 +22,6 @@ from sage.geometry.polyhedron.base import is_Polyhedron from .representation import Inequality, Equation, Vertex, Ray, Line -from sage.misc.lazy_import import lazy_import - -lazy_import('sage.geometry.polyhedron.backend_cdd', ['Polyhedron_QQ_cdd', - 'Polyhedron_RDF_cdd']) -lazy_import('sage.geometry.polyhedron.backend_ppl', ['Polyhedron_ZZ_ppl', - 'Polyhedron_QQ_ppl']) -lazy_import('sage.geometry.polyhedron.backend_normaliz', ['Polyhedron_normaliz', - 'Polyhedron_ZZ_normaliz', - 'Polyhedron_QQ_normaliz']) -lazy_import('sage.geometry.polyhedron.backend_polymake', 'Polyhedron_polymake') -lazy_import('sage.geometry.polyhedron.backend_field', 'Polyhedron_field') - def Polyhedra(ambient_space_or_base_ring=None, ambient_dim=None, backend=None, *, ambient_space=None, base_ring=None): @@ -1078,6 +1066,11 @@ def _make_Line(self, polyhedron, data): +from sage.geometry.polyhedron.backend_cdd import Polyhedron_QQ_cdd, Polyhedron_RDF_cdd +from sage.geometry.polyhedron.backend_ppl import Polyhedron_ZZ_ppl, Polyhedron_QQ_ppl +from sage.geometry.polyhedron.backend_normaliz import Polyhedron_normaliz, Polyhedron_ZZ_normaliz, Polyhedron_QQ_normaliz +from sage.geometry.polyhedron.backend_polymake import Polyhedron_polymake +from sage.geometry.polyhedron.backend_field import Polyhedron_field class Polyhedra_ZZ_ppl(Polyhedra_base): Element = Polyhedron_ZZ_ppl