DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead

Bug #1814288 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sqlalchemy-migrate
Fix Released
Medium
sean mooney

Bug Description

There is a deprecation warning generated from this code:

https://github.com/openstack/sqlalchemy-migrate/blob/a03b141a954c7e644f0033defdb1b5b434a7c49a/migrate/versioning/script/py.py#L144

which generates a lot of warnings in nova's py3* test jobs:

Captured stderr:
~~~~~~~~~~~~~~~~
    b'/home/osboxes/git/nova/.tox/py35/lib/python3.5/site-packages/migrate/versioning/script/py.py:144: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead'
    b' if not inspect.getargspec(script_func)[0]:'
    b''

Matt Riedemann (mriedem)
Changed in sqlalchemy-migrate:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
sean mooney (sean-k-mooney) wrote :
Changed in sqlalchemy-migrate:
assignee: nobody → sean mooney (sean-k-mooney)
Matt Riedemann (mriedem)
Changed in sqlalchemy-migrate:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sqlalchemy-migrate (master)

Reviewed: https://review.opendev.org/682518
Committed: https://git.openstack.org/cgit/x/sqlalchemy-migrate/commit/?id=5d1f322542cd8eb42381612765be4ed9ca8105ec
Submitter: Zuul
Branch: master

commit 5d1f322542cd8eb42381612765be4ed9ca8105ec
Author: Sean Mooney <email address hidden>
Date: Tue Sep 17 02:05:19 2019 +0100

    remove inspect.getargspec deprecation warning

    In python 3 inspect.getargspec is deprecated and
    replaced with inspect.getfullargspec which does not
    exist on python 2.7. This change uses six to select
    the correct version to use based on the python version
    used.

    Change-Id: I234a3509ff850d0c5616ebcfa240212b03db9e76
    Closes-Bug: #1814288

Changed in sqlalchemy-migrate:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in x/sqlalchemy-migrate 0.13.0

This issue was fixed in the x/sqlalchemy-migrate 0.13.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.