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
There were some recent changes made in ee171a2 to fix Sphinx related deprecation warnings. During the change self.info() was changed to self.logger.info() . Logger expects a positional argument that contains the message thus causing failure. I think empty string can be passed here. I changed it back to self.info() and ran make suspicious locally and it only printed deprecation warning. Looking the source the previous method had message default to '' thus self.info() was working.
If *nonl* is true, don't emit a newline at the end (which implies that
more info output will follow soon.)
.. deprecated:: 1.6
Use :mod:`sphinx.util.logging` instead.
"""
warnings.warn('app.info() is now deprecated. Use sphinx.util.logging instead.',
RemovedInSphinx20Warning)
logger.info(message, nonl=nonl)
Activity
tirkarthi commentedon Oct 21, 2018
There were some recent changes made in ee171a2 to fix Sphinx related deprecation warnings. During the change self.info() was changed to self.logger.info() . Logger expects a positional argument that contains the message thus causing failure. I think empty string can be passed here. I changed it back to self.info() and ran
make suspiciouslocally and it only printed deprecation warning. Looking the source the previous method had message default to '' thus self.info() was working.Sample failure : https://travis-ci.org/python/cpython/jobs/444263040#L560
I am adding @pablogsal for thoughts on the fix. I will add a PR shortly.
pablogsal commentedon Oct 21, 2018
New changeset c3f52a5 by Pablo Galindo (Xtreak) in branch 'master':
bpo-35036: Remove empty log line in the suspicious.py tool (GH-10024)
c3f52a5
pablogsal commentedon Oct 21, 2018
Thanks @XTreak for the catch and PR!
miss-islington commentedon Oct 8, 2019
New changeset e78d79c by Miss Islington (bot) in branch '2.7':
bpo-35036: Remove empty log line in the suspicious.py tool (GH-10024)
e78d79c