Skip to content

Commit d57488e

Browse files
committed
fixing the doctests
1 parent cc63398 commit d57488e

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

src/sage/geometry/polyhedron/parent.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
Parents for Polyhedra
33
"""
44

5-
#*****************************************************************************
5+
# ****************************************************************************
66
# Copyright (C) 2014 Volker Braun <[email protected]>
77
#
88
# Distributed under the terms of the GNU General Public License (GPL)
9-
# http://www.gnu.org/licenses/
10-
#******************************************************************************
9+
# https://www.gnu.org/licenses/
10+
# *****************************************************************************
1111

1212
from sage.structure.parent import Parent
1313
from sage.structure.element import get_coercion_model
@@ -400,7 +400,7 @@ def some_elements(self):
400400
points = []
401401
R = self.base_ring()
402402
for i in range(self.ambient_dim() + 5):
403-
points.append([R(i * j**2) for j in range(self.ambient_dim())])
403+
points.append([R(i * j ^ 2) for j in range(self.ambient_dim())])
404404
return [
405405
self.element_class(self, [points[0:self.ambient_dim() + 1], [], []], None),
406406
self.element_class(self, [points[0:1], points[1:self.ambient_dim() + 1], []], None),
@@ -1212,9 +1212,11 @@ def _element_constructor_polyhedron(self, polyhedron, **kwds):
12121212
else:
12131213
return Polyhedra_base._element_constructor_polyhedron(self, polyhedron, **kwds)
12141214

1215+
12151216
class Polyhedra_ZZ_normaliz(Polyhedra_base):
12161217
Element = Polyhedron_ZZ_normaliz
12171218

1219+
12181220
class Polyhedra_QQ_ppl(Polyhedra_base):
12191221
Element = Polyhedron_QQ_ppl
12201222

@@ -1244,27 +1246,35 @@ def _element_constructor_polyhedron(self, polyhedron, **kwds):
12441246
else:
12451247
return Polyhedra_base._element_constructor_polyhedron(self, polyhedron, **kwds)
12461248

1249+
12471250
class Polyhedra_QQ_normaliz(Polyhedra_base):
12481251
Element = Polyhedron_QQ_normaliz
12491252

1253+
12501254
class Polyhedra_QQ_cdd(Polyhedra_base):
12511255
Element = Polyhedron_QQ_cdd
12521256

1257+
12531258
class Polyhedra_RDF_cdd(Polyhedra_base):
12541259
Element = Polyhedron_RDF_cdd
12551260

1261+
12561262
class Polyhedra_normaliz(Polyhedra_base):
12571263
Element = Polyhedron_normaliz
12581264

1265+
12591266
class Polyhedra_polymake(Polyhedra_base):
12601267
Element = Polyhedron_polymake
12611268

1269+
12621270
class Polyhedra_field(Polyhedra_base):
12631271
Element = Polyhedron_field
12641272

1273+
12651274
class Polyhedra_number_field(Polyhedra_base):
12661275
Element = Polyhedron_number_field
12671276

1277+
12681278
@cached_function
12691279
def does_backend_handle_base_ring(base_ring, backend):
12701280
r"""

src/sage/modular/btquotients/btquotient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ class BruhatTitsTree(SageObject, UniqueRepresentation):
412412
sage: T = BruhatTitsTree(4)
413413
Traceback (most recent call last):
414414
...
415-
ValueError: Input (4) must be prime
415+
ValueError: input (4) must be prime
416416
417417
AUTHORS:
418418

0 commit comments

Comments
 (0)