From 185b49cd73907d2214401f96058e61b0eb334d8e Mon Sep 17 00:00:00 2001 From: Peter Bruin Date: Fri, 18 Jul 2014 11:28:31 +0100 Subject: [PATCH] Trac 16158: minor formatting changes --- src/sage/schemes/generic/homset.py | 2 +- src/sage/schemes/generic/scheme.py | 37 +++++++++++++----------------- src/sage/schemes/generic/spec.py | 1 - 3 files changed, 17 insertions(+), 23 deletions(-) diff --git a/src/sage/schemes/generic/homset.py b/src/sage/schemes/generic/homset.py index 90f41f6af9d..86547dd06db 100644 --- a/src/sage/schemes/generic/homset.py +++ b/src/sage/schemes/generic/homset.py @@ -207,7 +207,7 @@ def create_object(self, version, key, **extra_args): X = extra_args.pop('X') Y = extra_args.pop('Y') base_ring = extra_args.pop('base_ring') - if len(key) >= 4 and key[3]: + if len(key) >= 4 and key[3]: # as_point_homset=True return Y._point_homset(X, Y, category=category, base=base_ring, **extra_args) try: return X._homset(X, Y, category=category, base=base_ring, **extra_args) diff --git a/src/sage/schemes/generic/scheme.py b/src/sage/schemes/generic/scheme.py index 7104a23a177..d2f399fe82b 100644 --- a/src/sage/schemes/generic/scheme.py +++ b/src/sage/schemes/generic/scheme.py @@ -340,10 +340,10 @@ def point(self, v, check=True): INPUT: - - ``v`` -- anything that defines a point. + - ``v`` -- anything that defines a point - - ``check`` -- boolean (optional, default=``True``). Whether - to check the defining data for consistency. + - ``check`` -- boolean (optional, default: ``True``); whether + to check the defining data for consistency OUTPUT: @@ -613,14 +613,14 @@ def hom(self, x, Y=None, check=True): INPUT: - - ``x`` -- anything hat determines a scheme morphism. If ``x`` - is a scheme, try to determine a natural map to ``x``. + - ``x`` -- anything that determines a scheme morphism; if + ``x`` is a scheme, try to determine a natural map to ``x`` - - ``Y`` -- the codomain scheme (optional). If ``Y`` is not - given, try to determine ``Y`` from context. + - ``Y`` -- the codomain scheme (optional); if ``Y`` is not + given, try to determine ``Y`` from context - - ``check`` -- boolean (optional, default=``True``). Whether - to check the defining data for consistency. + - ``check`` -- boolean (optional, default: ``True``); whether + to check the defining data for consistency OUTPUT: @@ -648,12 +648,12 @@ def _Hom_(self, Y, category=None, check=True): INPUT: - - ``Y`` -- a scheme. The codomain of the Hom-set. + - ``Y`` -- a scheme; the codomain of the Hom-set - - ``category`` -- a category (optional). The category of the - Hom-set. + - ``category`` -- a category (optional); the category of the + Hom-set - - ``check`` -- boolean (optional, default=``True``). Whether + - ``check`` -- boolean (optional, default: ``True``); whether to check the defining data for consistency. OUTPUT: @@ -1071,11 +1071,7 @@ def coordinate_ring(self): def is_noetherian(self): """ - Test whether ``self`` is Noetherian. - - OUTPUT: - - Boolean. Return ``True`` if this scheme is Noetherian. + Return ``True`` if ``self`` is Noetherian, ``False`` otherwise. EXAMPLES:: @@ -1163,8 +1159,8 @@ def hom(self, x, Y=None): INPUT: - - ``x`` -- anything hat determines a scheme morphism. If ``x`` - is a scheme, try to determine a natural map to ``x`` + - ``x`` -- anything that determines a scheme morphism; if + ``x`` is a scheme, try to determine a natural map to ``x`` - ``Y`` -- the codomain scheme (optional); if ``Y`` is not given, try to determine ``Y`` from context @@ -1210,4 +1206,3 @@ def hom(self, x, Y=None): if Y is None and is_RingHomomorphism(x): Y = AffineScheme(x.domain()) return Scheme.hom(self, x, Y) - diff --git a/src/sage/schemes/generic/spec.py b/src/sage/schemes/generic/spec.py index 51c5f928cc3..2f7ddb4440c 100644 --- a/src/sage/schemes/generic/spec.py +++ b/src/sage/schemes/generic/spec.py @@ -189,4 +189,3 @@ def _apply_functor_to_morphism(self, f): from sage.structure.sage_object import register_unpickle_override register_unpickle_override('sage.schemes.generic.spec', 'Spec', AffineScheme) -