jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/705172 )
Change subject: [cleanup] remove strm parameter of init_handlers ......................................................................
[cleanup] remove strm parameter of init_handlers
strm parameter of init_handlers was never used neither in compat nor in core. There is no implementation for it.
Change-Id: I1f16e7bd34d7d1b661844c36ee3f2d03a8f48892 --- M pywikibot/bot.py 1 file changed, 6 insertions(+), 7 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py index 8f3b122..c450d55 100644 --- a/pywikibot/bot.py +++ b/pywikibot/bot.py @@ -169,6 +169,7 @@ deprecated_args, issue_deprecation_warning, redirect_func, + remove_last_args, suppress_warnings, ) from pywikibot.tools._logging import LoggingFormatter @@ -300,7 +301,8 @@ return '{}.{}{}'.format(root, qualifier, ext)
-def init_handlers(strm=None): +@remove_last_args(['strm']) +def init_handlers(): """Initialize logging system for terminal-based bots.
This function must be called before using pywikibot.output(); and must @@ -329,12 +331,9 @@ Accordingly, do **not** use print statements in bot code; instead, use pywikibot.output function.
- *New in version 6.2:* different logfiles are uses if multiple - processes of the same script are are running. - - :param strm: Output stream. If None, re-uses the last stream if one - was defined, otherwise uses sys.stderr - + ..versionchanged:: 6.2 + Different logfiles are used if multiple processes of the same + script are running. """ global _handlers_initialized
pywikibot-commits@lists.wikimedia.org