jenkins-bot has submitted this change and it was merged.
Change subject: (bugfix) default namespace required for template ......................................................................
(bugfix) default namespace required for template
Change-Id: I0cf6b1f415968d7efc823bd8f530856b8ad96ef2 --- M scripts/template.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/template.py b/scripts/template.py index d300319..7e6978c 100755 --- a/scripts/template.py +++ b/scripts/template.py @@ -272,7 +272,7 @@ elif self.remove: replacements.append((templateRegex, '')) else: - template = pywikibot.Page(site, new) + template = pywikibot.Page(site, new, ns=10) if not template.exists(): pywikibot.warning(u'Template "%s" does not exist.' % new) choice = pywikibot.inputChoice(
pywikibot-commits@lists.wikimedia.org