jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361146?usp=email )

Change subject: transliteration: Remove deprecated class and parameter aliases
......................................................................

transliteration: Remove deprecated class and parameter aliases

The lowercase transliterator alias and the next parameter were deprecated
in Pywikibot 9 and are scheduled for removal in Pywikibot 12. Remove both
compatibility paths and their pending-removal entries from ROADMAP.rst.
Callers must use Transliterator and the succ parameter instead.

Keep the module wrapper for NON_LATIN_DIGITS and the signature adapter,
whose deprecations are scheduled for removal in Pywikibot 13.

Change-Id: I436822d44fc1100fd1ed4c8a74c359ea72a0f3fd
---
M ROADMAP.rst
M pywikibot/userinterfaces/transliteration.py
2 files changed, 1 insertion(+), 11 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/ROADMAP.rst b/ROADMAP.rst
index e622026..9b6b4d1 100644
--- a/ROADMAP.rst
+++ b/ROADMAP.rst
@@ -47,10 +47,6 @@
   use ``-limit`` instead (:phab:`T128981`)
 * 9.0.0: The *content* parameter of :meth:`proofreadpage.IndexPage.page_gen` 
is deprecated and will be
   ignored (:phab:`T358635`)
-* 9.0.0: ``next`` parameter of 
:meth:`userinterfaces.transliteration.Transliterator.transliterate` was
-  renamed to ``succ``
-* 9.0.0: ``userinterfaces.transliteration.transliterator`` object was renamed 
to :class:`Transliterator
-  <userinterfaces.transliteration.Transliterator>`
 * 9.0.0: The ``type`` parameter of :meth:`site.APISite.protectedpages()
   <pywikibot.site._generators.GeneratorsMixin.protectedpages>` was renamed to 
``protect_type``
 * 9.0.0: The ``all`` parameter of :meth:`site.APISite.namespace()
diff --git a/pywikibot/userinterfaces/transliteration.py 
b/pywikibot/userinterfaces/transliteration.py
index 779370e..e8f47db 100644
--- a/pywikibot/userinterfaces/transliteration.py
+++ b/pywikibot/userinterfaces/transliteration.py
@@ -6,11 +6,7 @@
 """Module to transliterate text."""
 from __future__ import annotations

-from pywikibot.tools import (
-    ModuleDeprecationWrapper,
-    deprecate_arg,
-    deprecated_signature,
-)
+from pywikibot.tools import ModuleDeprecationWrapper, deprecated_signature


 #: Non ascii digits used by the framework
@@ -1127,7 +1123,6 @@
             trans[char] = value
         self.trans = trans

-    @deprecate_arg('next', 'succ')  # since 9.0
     @deprecated_signature(since='10.6.0')
     def transliterate(self, char: str, /, default: str = '?', *,
                       prev: str = '-', succ: str = '-') -> str:
@@ -1165,7 +1160,6 @@


 wrapper = ModuleDeprecationWrapper(__name__)
-wrapper.add_deprecated_attr('transliterator', Transliterator, since='9.0.0')
 wrapper.add_deprecated_attr('NON_LATIN_DIGITS', NON_ASCII_DIGITS,
                             replacement_name='NON_ASCII_DIGITS',
                             since='10.3.0')

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1361146?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: I436822d44fc1100fd1ed4c8a74c359ea72a0f3fd
Gerrit-Change-Number: 1361146
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]

Reply via email to