yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #72633
[Bug 1766919] Re: inspect.getargspec usage is deprecated in python 3
Reviewed: https://review.openstack.org/530777
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=35b304661d17e1b64460101ae30273a4c5672a14
Submitter: Zuul
Branch: master
commit 35b304661d17e1b64460101ae30273a4c5672a14
Author: Stephen Finucane <sfinucan@xxxxxxxxxx>
Date: Tue Jan 2 17:18:21 2018 +0000
Handle deprecation of inspect.getargspec
getargspec has been deprecated in py3 with plans to remove it in py3.6.
The recommendation is to move to inspect.signature, but the results of
that call are different than the existing one.
There is also getfullargspec available under py3 that was originally
deprecated, but for the sake of handling 2/3 code, it has been
un-deprecated. This call uses inspect internally, but returns a mostly
compatible result with what getargspec did. This handles getargspec
deprecation by just using getfullargspec instead if it is available
Closes-Bug: #1766919
Change-Id: I154b1ef14dbace803841cb3eed3ff02dd0020588
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1766919
Title:
inspect.getargspec usage is deprecated in python 3
Status in OpenStack Compute (nova):
Fix Released
Status in python-mox3:
Confirmed
Bug description:
As seen in py35 CI logs:
b'/home/osboxes/git/nova/.tox/functional-py35/lib/python3.5/site-packages/paste/deploy/loadwsgi.py:22: DeprecationWarning: Parameters to load are deprecated. Call .resolve and .require separately.'
b' return pkg_resources.EntryPoint.parse("x=" + s).load(False)'
b'/home/osboxes/git/nova/nova/utils.py:751: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead'
b' arg_names, a, kw, _default = inspect.getargspec(base_f)'
Also seen all over:
http://logs.openstack.org/01/558001/5/check/openstack-tox-py35/b9ea932
/job-output.txt.gz
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1766919/+subscriptions
References