diff --git a/src/sage/misc/functional.py b/src/sage/misc/functional.py index 65a35b45a53..f07e3a951f6 100644 --- a/src/sage/misc/functional.py +++ b/src/sage/misc/functional.py @@ -939,7 +939,8 @@ def krull_dimension(x): sage: U.krull_dimension() 4 """ - deprecation(39311, "please use the krull_dimension method") + deprecation(39311, "this function is deprecated; use `krull_dimension()` instead") + return x.krull_dimension() diff --git a/src/sage/schemes/elliptic_curves/gp_simon.py b/src/sage/schemes/elliptic_curves/gp_simon.py index a1bc0f504ac..3f9054f2935 100644 --- a/src/sage/schemes/elliptic_curves/gp_simon.py +++ b/src/sage/schemes/elliptic_curves/gp_simon.py @@ -109,8 +109,8 @@ def simon_two_descent(E, verbose=0, lim1=None, lim3=None, limtriv=None, K_pari = pari.bnfinit(K.polynomial(), 1) known_points = [P.change_ring(to_K) for P in known_points] else: - deprecation(38461, "please use the 2-descent algorithm over QQ inside pari") - from_K = lambda x: x + deprecation(39311, "this method is deprecated; use `krull_dimension()` instead") + from_K = lambda x: x # The block below mimics the defaults in Simon's scripts. # They need to be changed when these are updated.