Skip to content

Commit 4a5a470

Browse files
committed
more fixes
1 parent d7af60d commit 4a5a470

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

src/sage/rings/real_mpfi.pyx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ cdef class RealIntervalFieldElement(RingElement):
11811181
sage: RealIntervalFieldElement.__new__(RealIntervalFieldElement, ZZ)
11821182
Traceback (most recent call last):
11831183
...
1184-
TypeError: cannot convert sage.rings.integer_ring.IntegerRing_class to sage.rings.real_mpfi.RealIntervalField_class
1184+
TypeError: Cannot convert sage.rings.integer_ring.IntegerRing_class to sage.rings.real_mpfi.RealIntervalField_class
11851185
sage: RealIntervalFieldElement.__new__(RealIntervalFieldElement, RIF)
11861186
[.. NaN ..]
11871187
@@ -5356,7 +5356,8 @@ def __create__RealIntervalField_version0(prec, sci_not):
53565356
"""
53575357
return RealIntervalField(prec, sci_not)
53585358

5359-
## Keep all old versions!!!
5359+
5360+
# Keep all old versions!!!
53605361
def __create__RealIntervalFieldElement_version0(parent, x, base=10):
53615362
"""
53625363
For pickling.
@@ -5368,6 +5369,7 @@ def __create__RealIntervalFieldElement_version0(parent, x, base=10):
53685369
"""
53695370
return RealIntervalFieldElement(parent, x, base=base)
53705371

5372+
53715373
def __create__RealIntervalFieldElement_version1(parent, lower, upper):
53725374
"""
53735375
For pickling.

src/sage/rings/real_mpfr.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ cdef class RealNumber(sage.structure.element.RingElement):
13411341
sage: RealNumber.__new__(RealNumber, ZZ)
13421342
Traceback (most recent call last):
13431343
...
1344-
TypeError: cannot convert sage.rings.integer_ring.IntegerRing_class to sage.rings.real_mpfr.RealField_class
1344+
TypeError: Cannot convert sage.rings.integer_ring.IntegerRing_class to sage.rings.real_mpfr.RealField_class
13451345
sage: RealNumber.__new__(RealNumber, RR)
13461346
NaN
13471347
"""
@@ -6105,7 +6105,7 @@ def create_RealField(*args, **kwds):
61056105
See http://trac.sagemath.org/24511 for details.
61066106
Real Field with 53 bits of precision
61076107
"""
6108-
#deprecation has already been imported in this file
6108+
# deprecation has already been imported in this file
61096109
deprecation(24511, "Please import create_RealField from sage.rings.real_field")
61106110
from sage.rings.real_field import create_RealField as cr
61116111
return cr(*args, **kwds)

src/sage/rings/universal_cyclotomic_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def to_cyclotomic_field(self, R=None):
561561
sage: CF(E(5)) # indirect doctest
562562
Traceback (most recent call last):
563563
...
564-
TypeError: Cannot coerce zeta5 into Cyclotomic Field of order 7 and
564+
TypeError: cannot coerce zeta5 into Cyclotomic Field of order 7 and
565565
degree 6
566566
567567
sage: CF = CyclotomicField(10)

src/sage/structure/element.pyx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ cdef class Element(SageObject):
424424
sage: q._set_parent(float)
425425
Traceback (most recent call last):
426426
...
427-
TypeError: cannot convert type to sage.structure.parent.Parent
427+
TypeError: Cannot convert type to sage.structure.parent.Parent
428428
"""
429429
self._parent = <Parent?>parent
430430

@@ -4432,11 +4432,11 @@ def coerce_binop(method):
44324432
44334433
Another real example::
44344434
4435-
sage: R1=QQ['x,y']
4436-
sage: R2=QQ['x,y,z']
4437-
sage: f=R1(1)
4438-
sage: g=R1(2)
4439-
sage: h=R2(1)
4435+
sage: R1 = QQ['x,y']
4436+
sage: R2 = QQ['x,y,z']
4437+
sage: f = R1(1)
4438+
sage: g = R1(2)
4439+
sage: h = R2(1)
44404440
sage: f.gcd(g)
44414441
1
44424442
sage: f.gcd(g,algorithm='modular')

0 commit comments

Comments
 (0)