From da9e835d61c797c239e0a67e5f529c80e75d55a8 Mon Sep 17 00:00:00 2001 From: Jonathan Kliem Date: Thu, 20 Feb 2020 16:48:50 +0100 Subject: [PATCH] little improvement --- src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx b/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx index 6544f8bde5c..91202a3531f 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx @@ -1781,7 +1781,7 @@ cdef class CombinatorialPolyhedron(SageObject): vertices[one] = 0 vertices[two] = 0 - return all(x == 0 for x in vertices) + return not any(vertices) def is_pyramid(self, certificate=False): r"""