From fa4c2d238a8f16a61f02e7cfa89ba3f17d8f4980 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 7 Jun 2021 15:07:47 -0700 Subject: [PATCH] Whitespace fixes --- src/sage/geometry/cone.py | 3 --- src/sage/geometry/relative_interior.py | 7 +------ 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/sage/geometry/cone.py b/src/sage/geometry/cone.py index 46b7d88b2e9..8e3e73d75dd 100644 --- a/src/sage/geometry/cone.py +++ b/src/sage/geometry/cone.py @@ -1830,7 +1830,6 @@ def relative_interior(self): 2-d cone in 2-d lattice N sage: K2.relative_interior() is K2 True - """ if self.is_relatively_open(): return self @@ -4730,7 +4729,6 @@ def lineality(self): return self.linear_subspace().dimension() def is_relatively_open(self): - r""" Return whether ``self`` is relatively open. @@ -4748,7 +4746,6 @@ def is_relatively_open(self): 1-d cone in 2-d lattice N sage: K1.is_relatively_open() True - """ return self.lineality() == self.dim() diff --git a/src/sage/geometry/relative_interior.py b/src/sage/geometry/relative_interior.py index 73e65d4361e..0850ea4860c 100644 --- a/src/sage/geometry/relative_interior.py +++ b/src/sage/geometry/relative_interior.py @@ -14,8 +14,8 @@ from sage.structure.sage_object import SageObject -class RelativeInterior(SageObject): +class RelativeInterior(SageObject): r""" The relative interior of a polyhedron or cone @@ -34,7 +34,6 @@ class RelativeInterior(SageObject): sage: octant = Cone([(1,0,0), (0,1,0), (0,0,1)]) sage: octant.relative_interior() Relative interior of 3-d cone in 3-d lattice N - """ def __init__(self, polyhedron): @@ -51,7 +50,6 @@ def __init__(self, polyhedron): sage: P = Polyhedron() sage: from sage.geometry.relative_interior import RelativeInterior sage: TestSuite(RelativeInterior(P)).run() - """ self._polyhedron = polyhedron @@ -121,7 +119,6 @@ def closure(self): a 1-dimensional polyhedron in ZZ^2 defined as the convex hull of 2 vertices sage: ri_segment.closure() is segment True - """ return self._polyhedron @@ -169,7 +166,6 @@ def __eq__(self, other): sage: empty = Polyhedron(ambient_dim=2) sage: ri_segment == empty False - """ if type(self) != type(other): return False @@ -195,6 +191,5 @@ def __ne__(self, other): a 1-dimensional polyhedron in AA^2 defined as the convex hull of 2 vertices sage: ri_segment != ri_segment2 False - """ return not (self == other)