Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit cb82f01

Browse files
committed
fix raise syntax and a line of documentation
1 parent d87d5a8 commit cb82f01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sage/schemes/generic/scheme.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -858,13 +858,13 @@ def __init__(self, R, S=None, category=None):
858858
"""
859859
from sage.categories.commutative_rings import CommutativeRings
860860
if not R in CommutativeRings():
861-
raise TypeError, "R (=%s) must be a commutative ring"%R
861+
raise TypeError("R (=%s) must be a commutative ring" % R)
862862
self.__R = R
863863
if not S is None:
864864
if not S in CommutativeRings():
865-
raise TypeError, "S (=%s) must be a commutative ring"%S
865+
raise TypeError("S (=%s) must be a commutative ring" % S)
866866
if not R.has_coerce_map_from(S):
867-
raise ValueError, "There must be a natural map S --> R, but S = %s and R = %s"%(S,R)
867+
raise ValueError("There must be a natural map S --> R, but S = %s and R = %s" % (S, R))
868868
Scheme.__init__(self, S, category=category)
869869

870870
def __setstate__(self, state):
@@ -974,7 +974,7 @@ def _latex_(self):
974974

975975
def __call__(self, *args):
976976
"""
977-
Call syntax for Spec.
977+
Construct a scheme-valued or topological point of ``self``.
978978
979979
INPUT/OUTPUT:
980980

0 commit comments

Comments
 (0)