jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/705163 )
Change subject: [cleanup] Deprecate OutputOption.output() method ......................................................................
[cleanup] Deprecate OutputOption.output() method
OutputOption.output() method was replaced by the out property and the userinterfaces system does not use the output() method anymore.
Change-Id: I19bf5826b6c6fc916dcba0c9acee5021020d07a3 --- M pywikibot/bot_choice.py 1 file changed, 6 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/bot_choice.py b/pywikibot/bot_choice.py index 598012a..f6dd49f 100755 --- a/pywikibot/bot_choice.py +++ b/pywikibot/bot_choice.py @@ -126,10 +126,14 @@ """ return ''
+ @deprecated('pywikibot.output(OutputOption.out)', since='6.5') def output(self) -> None: - """Output string when selected and possibly before the question. + """Output string.
- :Note: This method should never be overridden. + .. deprecated:: 6.5 + This method was replaced by :py:obj:`out` property and is no + no longer used by the + :py:mod:`userinterfaces <pywikibot.userinterfaces>` system. """ pywikibot.output(self.out)