jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[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(-)

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


To view, visit change 705172. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I1f16e7bd34d7d1b661844c36ee3f2d03a8f48892
Gerrit-Change-Number: 705172
Gerrit-PatchSet: 4
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged