jenkins-bot has submitted this change and it was merged.
Change subject: [IMPR] interwiki: Remove getNamespaceIndex usage ......................................................................
[IMPR] interwiki: Remove getNamespaceIndex usage
This is the only remaining usage of getNamespaceIndex which has been deprecated since quite some time.
Change-Id: I3aaec9579ec0e1c559f93f37f8b8638c2a3508ab --- M scripts/interwiki.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/interwiki.py b/scripts/interwiki.py index 151f21d..33749ea 100755 --- a/scripts/interwiki.py +++ b/scripts/interwiki.py @@ -2544,10 +2544,10 @@ ns = namespaces[0] if ns != 'all': if isinstance(ns, unicode) or isinstance(ns, str): - index = site.getNamespaceIndex(ns) + index = site.namespaces.lookup(ns) if index is None: raise ValueError(u'Unknown namespace: %s' % ns) - ns = index + ns = index.id namespaces = [] else: ns = 'all'