Skip to content

Commit d7af60d

Browse files
committed
some fixes
1 parent 3723f2d commit d7af60d

File tree

13 files changed

+16
-16
lines changed

13 files changed

+16
-16
lines changed

src/sage/combinat/posets/posets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,7 @@ def linear_extensions(self, facade=False):
16031603
sage: L([1, 2, 3, 4, 6, 12])
16041604
Traceback (most recent call last):
16051605
...
1606-
TypeError: cannot convert list to sage.structure.element.Element
1606+
TypeError: Cannot convert list to sage.structure.element.Element
16071607
16081608
EXAMPLES::
16091609

src/sage/cpython/wrapperdescr.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ cdef inline wrapperbase* get_slotdef(wrapper_descriptor slotwrapper) except NULL
5959
sage: py_get_slotdef(X.__eq__)
6060
Traceback (most recent call last):
6161
...
62-
TypeError: cannot convert ... to wrapper_descriptor
62+
TypeError: Cannot convert ... to wrapper_descriptor
6363
"""
6464
return slotwrapper.d_base

src/sage/data_structures/bounded_integer_sequences.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ cdef class BoundedIntegerSequence:
12081208
sage: T+list(S)
12091209
Traceback (most recent call last):
12101210
...
1211-
TypeError: cannot convert list to sage.data_structures.bounded_integer_sequences.BoundedIntegerSequence
1211+
TypeError: Cannot convert list to sage.data_structures.bounded_integer_sequences.BoundedIntegerSequence
12121212
sage: T+None
12131213
Traceback (most recent call last):
12141214
...

src/sage/graphs/generic_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2414,7 +2414,7 @@ def weighted_adjacency_matrix(self, sparse=True, vertices=None,
24142414
sage: G.weighted_adjacency_matrix()
24152415
Traceback (most recent call last):
24162416
...
2417-
TypeError: cannot convert NoneType to sage.structure.parent.Parent
2417+
TypeError: Cannot convert NoneType to sage.structure.parent.Parent
24182418
"""
24192419
if self.has_multiple_edges():
24202420
raise NotImplementedError("don't know how to represent weights for a multigraph")

src/sage/matrix/matrix_integer_dense.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ cdef class Matrix_integer_dense(Matrix_dense):
948948
sage: None^M
949949
Traceback (most recent call last):
950950
...
951-
TypeError: cannot convert NoneType to sage.matrix.matrix_integer_dense.Matrix_integer_dense
951+
TypeError: Cannot convert NoneType to sage.matrix.matrix_integer_dense.Matrix_integer_dense
952952
sage: M^M
953953
Traceback (most recent call last):
954954
...

src/sage/modules/free_module_element.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2570,7 +2570,7 @@ cdef class FreeModuleElement(Vector): # abstract base class
25702570
sage: v.dot_product('junk')
25712571
Traceback (most recent call last):
25722572
...
2573-
TypeError: cannot convert str to sage.modules.free_module_element.FreeModuleElement
2573+
TypeError: Cannot convert str to sage.modules.free_module_element.FreeModuleElement
25742574
25752575
The degrees of the arguments must match. ::
25762576

src/sage/numerical/linear_functions.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ cdef class LinearConstraintsParent_class(Parent):
12121212
sage: LinearConstraintsParent_class.__new__(LinearConstraintsParent_class, None)
12131213
Traceback (most recent call last):
12141214
...
1215-
TypeError: cannot convert NoneType to sage.numerical.linear_functions.LinearFunctionsParent_class
1215+
TypeError: Cannot convert NoneType to sage.numerical.linear_functions.LinearFunctionsParent_class
12161216
"""
12171217
self._LF = <LinearFunctionsParent_class?>linear_functions_parent
12181218
# Do not use coercion framework for __richcmp__
@@ -1236,7 +1236,7 @@ cdef class LinearConstraintsParent_class(Parent):
12361236
sage: LinearConstraintsParent(None)
12371237
Traceback (most recent call last):
12381238
...
1239-
TypeError: cannot convert NoneType to sage.numerical.linear_functions.LinearFunctionsParent_class
1239+
TypeError: Cannot convert NoneType to sage.numerical.linear_functions.LinearFunctionsParent_class
12401240
"""
12411241
Parent.__init__(self)
12421242

src/sage/rings/complex_arb.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ class ComplexBallField(UniqueRepresentation, sage.rings.abc.ComplexBallField):
947947
sage: CBF._sum_of_products([["a"]])
948948
Traceback (most recent call last):
949949
...
950-
TypeError: cannot convert str to sage.rings.complex_arb.ComplexBall
950+
TypeError: Cannot convert str to sage.rings.complex_arb.ComplexBall
951951
"""
952952
cdef ComplexBall res = ComplexBall.__new__(ComplexBall)
953953
cdef ComplexBall factor

src/sage/rings/polynomial/polynomial_element.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8027,11 +8027,11 @@ cdef class Polynomial(CommutativeAlgebraElement):
80278027
sage: f.roots(RR)
80288028
Traceback (most recent call last):
80298029
...
8030-
TypeError: Cannot evaluate symbolic expression to a numeric value.
8030+
TypeError: cannot evaluate symbolic expression to a numeric value
80318031
sage: f.roots(CC)
80328032
Traceback (most recent call last):
80338033
...
8034-
TypeError: Cannot evaluate symbolic expression to a numeric value.
8034+
TypeError: cannot evaluate symbolic expression to a numeric value
80358035
80368036
We can find roots of polynomials defined over `\ZZ` or `\QQ`
80378037
over the `p`-adics, see :trac:`15422`::

src/sage/rings/polynomial/polynomial_real_mpfr_dense.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ cdef class PolynomialRealDense(Polynomial):
8585
sage: PolynomialRealDense(RR['x'], [1,a])
8686
Traceback (most recent call last):
8787
...
88-
TypeError: Cannot evaluate symbolic expression to a numeric value.
88+
TypeError: cannot evaluate symbolic expression to a numeric value
8989
sage: R.<x> = SR[]
9090
sage: (x-a).change_ring(RR)
9191
Traceback (most recent call last):
9292
...
93-
TypeError: Cannot evaluate symbolic expression to a numeric value.
93+
TypeError: cannot evaluate symbolic expression to a numeric value
9494
sage: sig_on_count()
9595
0
9696

0 commit comments

Comments
 (0)