hfaran / Tornado-JSON

A simple JSON API framework based on Tornado
http://tornado-json.readthedocs.org/
MIT License
273 stars 60 forks source link

DeprecationWarning for inspect.getargspec() Fix #106

Closed digitaldavenyc closed 5 years ago

digitaldavenyc commented 5 years ago

Fixes deprecation warning during pytests

 /usr/local/lib/python3.6/site-packages/tornado_json/gen.py:18: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
    wrapper.__argspec_args = inspect.getargspec(func).args
  /usr/local/lib/python3.6/site-packages/tornado_json/routes.py:97: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() or inspect.getfullargspec()
    inspect.getargspec(method).args)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 96.024% when pulling 9c30b725358c98d4a0cb890744589ebfcceace58 on digitaldavenyc:deprecation-warning into 2ab0e0c8d785439078857aa79b6155bbdf893311 on hfaran:master.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 96.024% when pulling 9c30b725358c98d4a0cb890744589ebfcceace58 on digitaldavenyc:deprecation-warning into 2ab0e0c8d785439078857aa79b6155bbdf893311 on hfaran:master.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 96.024% when pulling 9c30b725358c98d4a0cb890744589ebfcceace58 on digitaldavenyc:deprecation-warning into 2ab0e0c8d785439078857aa79b6155bbdf893311 on hfaran:master.

hfaran commented 5 years ago

@digitaldavenyc Thanks for the fix!