# HG changeset patch
# User J. H. Palmieri
# Date 1311191884 25200
# Node ID 834b05e941403c6c06676e3fca1acdd291c774b8
# Parent a3aa214cfeb810c804bb5c31687ba8d95caf1bb2
#11298: referee patch
diff --git a/sage/misc/decorators.py b/sage/misc/decorators.py
--- a/sage/misc/decorators.py
+++ b/sage/misc/decorators.py
@@ -121,7 +121,7 @@ def sage_wraps(wrapped, assigned = WRAPP
#Getting the signature right in documentation by Sphinx (Trac 9976)
#The attribute _sage_argspec_() is read by Sphinx if present and used
#as the argspec of the function instead of using reflection.
- from sageinspect import sage_getargspec, sage_getsource
+ from sageinspect import sage_getargspec
argspec = sage_getargspec(wrapped)
wrapper._sage_argspec_ = lambda: argspec
return wrapper
diff --git a/sage/misc/edit_module.py b/sage/misc/edit_module.py
--- a/sage/misc/edit_module.py
+++ b/sage/misc/edit_module.py
@@ -88,7 +88,7 @@ def file_and_line(obj):
The following tests against a bug that was fixed in trac ticket #11298::
sage: edit_module.file_and_line(x)
- ('...sage/symbolic/expression.pyx', 191)
+ ('...sage/symbolic/expression.pyx', ...)
"""
#d = inspect.getdoc(obj)
diff --git a/sage/misc/sageinspect.py b/sage/misc/sageinspect.py
--- a/sage/misc/sageinspect.py
+++ b/sage/misc/sageinspect.py
@@ -1001,8 +1001,8 @@ def sage_getargspec(obj):
decorated method appears to have the generic signature
``*args,**kwds``, but in fact it is only supposed to be called
with the arguments requested by the underlying undecorated
- method. We saw an easy example above, namely `I.groebner_basis`.
- Here is a more difficult::
+ method. We saw an easy example above, namely ``I.groebner_basis``.
+ Here is a more difficult one::
sage: cython_code = [
... 'cdef class MyClass:',
@@ -1348,7 +1348,7 @@ def sage_getsourcelines(obj, is_binary=F
...
' raise ValueError, "k must be an integer or an integer + 1/2"\n'], 31)
- Here are some cases that where covered in trac ticket #11298;
+ Here are some cases that were covered in trac ticket #11298;
note that line numbers may easily change, and therefore we do
not test them::