diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-08-10 16:03:54 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-08-10 16:03:54 (GMT) |
commit | 2bb2f6acd0b88394f915d7e0914cfd348fe618e1 (patch) | |
tree | 270af07acbb5ae331acfc2b723783e02ad53df0a /Lib/xmlrpc | |
parent | 8281e7c24c08debff65f41a1e8c81ba8e6d5250b (diff) | |
parent | f22b62e26137e334e9a0beffd0de531955daf8ce (diff) | |
download | cpython-2bb2f6acd0b88394f915d7e0914cfd348fe618e1.zip cpython-2bb2f6acd0b88394f915d7e0914cfd348fe618e1.tar.gz cpython-2bb2f6acd0b88394f915d7e0914cfd348fe618e1.tar.bz2 |
Merge #8112: Update the documenting xmlrpc server to use getfullargspec.
Diffstat (limited to 'Lib/xmlrpc')
-rw-r--r-- | Lib/xmlrpc/server.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Lib/xmlrpc/server.py b/Lib/xmlrpc/server.py index 54e1726..78ca4e0 100644 --- a/Lib/xmlrpc/server.py +++ b/Lib/xmlrpc/server.py @@ -756,20 +756,23 @@ class ServerHTMLDoc(pydoc.HTMLDoc): self.escape(anchor), self.escape(name)) if inspect.ismethod(object): - args, varargs, varkw, defaults = inspect.getargspec(object) + args = inspect.getfullargspec(object) # exclude the argument bound to the instance, it will be # confusing to the non-Python user argspec = inspect.formatargspec ( - args[1:], - varargs, - varkw, - defaults, + args.args[1:], + args.varargs, + args.varkw, + args.defaults, + annotations=args.annotations, formatvalue=self.formatvalue ) elif inspect.isfunction(object): - args, varargs, varkw, defaults = inspect.getargspec(object) + args = inspect.getfullargspec(object) argspec = inspect.formatargspec( - args, varargs, varkw, defaults, formatvalue=self.formatvalue) + args.args, args.varargs, args.varkw, args.defaults, + annotations=args.annotations, + formatvalue=self.formatvalue) else: argspec = '(...)' |