Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec() #94

Closed
krassowski opened this issue Jan 11, 2019 · 1 comment

Comments

@krassowski
Copy link

Hi @hoatle, thank you for maintaining flask-classful!

After migration to Python3.7 I am being flooded with deprecation warning - could you have a look at it?

virtualenv/python3.7.1/lib/python3.7/site-packages/flask_classful.py:382: DeprecationWarning:
inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()

It might be that simple swapping of the order of this try-except would fix it:
https://github.com/teracyhq/flask-classful/blob/42fa5fce1fa97b1f00813b4ce0dd13ebebdb28cc/flask_classful.py#L446-L449

@hoatle
Copy link
Contributor

hoatle commented Jan 12, 2019

thank you @krassowski, this will be fixed by the next release.

hoatle added a commit to hoatle/flask-classful that referenced this issue Jan 12, 2019
hoatle added a commit that referenced this issue Jan 12, 2019
…es-removal

@ #94 | inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
@hoatle hoatle closed this as completed Jan 12, 2019
@ghost ghost removed the stag:under-review label Jan 12, 2019
hoatle added a commit to hoatle/flask-classful that referenced this issue Jan 23, 2019
hoatle added a commit to hoatle/flask-classful that referenced this issue Jan 23, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants