jenkins-bot has submitted this change and it was merged.
Change subject: titletranslate: use site.namespace, not (unavailable) family.namespace ......................................................................
titletranslate: use site.namespace, not (unavailable) family.namespace
Change-Id: I02f0f9fa0e963f53d76a0b778ab1474b618d1723 --- M pywikibot/titletranslate.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/titletranslate.py b/pywikibot/titletranslate.py index 84edbb8..8421ef3 100644 --- a/pywikibot/titletranslate.py +++ b/pywikibot/titletranslate.py @@ -48,7 +48,7 @@ continue ns = page.namespace() if ns: - newname = u'%s:%s' % (family.namespace('_default', ns), + newname = u'%s:%s' % (site.namespace(ns), page.title(withNamespace=False)) else: # article in the main namespace
pywikibot-commits@lists.wikimedia.org