You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
subprocess_middleware workers.py uses log.warn rather than log.warning #1
In testing some cgap-portal code under github actions, I saw this DeprecationWarning:
/home/runner/.cache/pypoetry/virtualenvs/encoded-e-hjmLy7-py3.6/lib/python3.6/site-packages/subprocess_middleware/worker.py:124: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
log.warn('Retrying: %r\n%s', e, errout)
Note: There is an obsolete function warn which is functionally identical to warning. As warn is deprecated, please do not use it - use warning instead.
I didn't test such a fix, but I did check that indeed logging.warning exists in Python 2.7. I'm using Python 3.6 and it's there as well. I can't speak to Python 3.4, but I imagine it's there. It looks like you're better set up to test this properly, but it sounds like a safe substitution to me.
Activity