jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/647646 )
Change subject: [cleanup] Remove deprecated namespace function in replicate_wiki.py ......................................................................
[cleanup] Remove deprecated namespace function in replicate_wiki.py
Change-Id: I2da11be679d6f1889ae27b80611667d53b523772 --- M scripts/replicate_wiki.py 1 file changed, 0 insertions(+), 7 deletions(-)
Approvals: D3r1ck01: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/replicate_wiki.py b/scripts/replicate_wiki.py index 1d42b26..75014a7 100755 --- a/scripts/replicate_wiki.py +++ b/scripts/replicate_wiki.py @@ -51,13 +51,6 @@ import pywikibot
from pywikibot import config, Page -from pywikibot.tools import deprecated - - -@deprecated('BaseSite.namespaces', since='20150515', future_warning=True) -def namespaces(site): - """Return a dictionary from namespace number to prefix.""" - return {n.id: n.custom_name for n in site.namespaces}
def multiple_replace(text, word_dict):
pywikibot-commits@lists.wikimedia.org