jenkins-bot submitted this change.
cleanup: remove deprecated textlib code
Bug: T378898
Change-Id: If8f916981e5e259823086a9cae3c3d74e14ab2a5
---
M ROADMAP.rst
M pywikibot/textlib.py
2 files changed, 3 insertions(+), 19 deletions(-)
diff --git a/ROADMAP.rst b/ROADMAP.rst
index f7f45ad..7d36848 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -11,6 +11,9 @@
**Breaking changes and code cleanups**
+* ``fix_digits`` method of :class:`textlib.TimeStripper` was removed;
+ :func:`textlib.to_latin_digits` can be used instead
+* :mod:`textlib`.tzoneFixedOffset class was removed in favour of :class:`time.TZoneFixedOffset`
* A boolean *watch* parameter in :meth:`page.BasePage.save` is desupported
* ``XMLDumpOldPageGenerator`` was removed in favour of a ``content`` parameter of
:func:`pagegenerators.XMLDumpPageGenerator` (:phab:`T306134`)
@@ -98,7 +101,6 @@
-------------------------------
* 9.4.0: :mod:`flow` support is deprecated and will be removed (:phab:`T371180`)
-* 7.5.0: :mod:`textlib`.tzoneFixedOffset class will be removed in favour of :class:`time.TZoneFixedOffset`
* 7.4.0: ``FilePage.usingPages()`` was renamed to :meth:`using_pages()<pywikibot.FilePage.using_pages>`
* 7.3.0: ``linktrail`` method of :class:`family.Family` is deprecated; use :meth:`APISite.linktrail()
<pywikibot.site._apisite.APISite.linktrail>` instead
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py
index 0089047..dbbae33 100644
--- a/pywikibot/textlib.py
+++ b/pywikibot/textlib.py
@@ -24,7 +24,6 @@
from pywikibot.family import Family
from pywikibot.time import TZoneFixedOffset
from pywikibot.tools import (
- ModuleDeprecationWrapper,
deprecated,
deprecated_args,
first_lower,
@@ -2104,16 +2103,6 @@
"""
return TIMEGROUPS
- @staticmethod
- @deprecated('to_latin_digits() function', since='7.0.0')
- def fix_digits(line):
- """Make non-latin digits like Persian to latin to parse.
-
- .. deprecated:: 7.0
- Use :func:`to_latin_digits` instead.
- """
- return to_latin_digits(line)
-
def _last_match_and_replace(self,
txt: str,
pat) -> tuple[str, Match[str] | None]:
@@ -2280,10 +2269,3 @@
timestamp = None
return timestamp
-
-
-wrapper = ModuleDeprecationWrapper(__name__)
-wrapper.add_deprecated_attr(
- 'tzoneFixedOffset',
- replacement_name='pywikibot.time.TZoneFixedOffset',
- since='7.5.0')
To view, visit change 1101191. To unsubscribe, or for help writing mail filters, visit settings.