jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361145?usp=email )
Change subject: formatter: Remove deprecated SequenceOutputter.output
......................................................................
formatter: Remove deprecated SequenceOutputter.output
SequenceOutputter.output was deprecated in Pywikibot 9 and is scheduled
for removal in Pywikibot 12. Remove the method, its unused imports, and
its pending-removal entry from ROADMAP.rst. Callers can pass the out
property to pywikibot.info instead.
Change-Id: I33539b67b289d2667a61dcfc3805c50ba309c96e
---
M ROADMAP.rst
M pywikibot/tools/formatter.py
2 files changed, 0 insertions(+), 15 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/ROADMAP.rst b/ROADMAP.rst
index 9b6b4d1..a9e45d0 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -57,8 +57,6 @@
* 9.0.0: ``allrevisions`` parameter of :class:`xmlreader.XmlDump` is
deprecated, use ``revisions`` instead
(:phab:`T340804`)
* 9.0.0: ``iteritems`` method of :class:`data.api.Request` will be removed in
favour of ``items``
-* 9.0.0: ``SequenceOutputter.output()`` is deprecated in favour of the
- :attr:`tools.formatter.SequenceOutputter.out` property
Pending removal in Pywikibot 13
diff --git a/pywikibot/tools/formatter.py b/pywikibot/tools/formatter.py
index be7f8ba..15408e9 100644
--- a/pywikibot/tools/formatter.py
+++ b/pywikibot/tools/formatter.py
@@ -8,9 +8,6 @@
import math
-from pywikibot.logging import info
-from pywikibot.tools import deprecated
-
class SequenceOutputter:
@@ -52,13 +49,3 @@
else:
content = ''
return self.prefix + content + self.suffix
-
- @deprecated('pywikibot.info(SequenceOutputter.out)', since='9.0.0')
- def output(self) -> None:
- """Output the text of the current sequence.
-
- .. version-deprecated:: 9.0
- Use :func:`pywikibot.info()<pywikibot.logging.info>` with
- :attr:`out` property.
- """
- info(self.out)
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361145?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I33539b67b289d2667a61dcfc3805c50ba309c96e
Gerrit-Change-Number: 1361145
Gerrit-PatchSet: 2
Gerrit-Owner: Mahveotm <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]