jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/458145 )
Change subject: [bugfix] enable Namespace.content for mw < 1.16 ......................................................................
[bugfix] enable Namespace.content for mw < 1.16
Bug: T203491 Change-Id: I7bc12a28c82f59f8159976ce996f6671ba23927f --- M pywikibot/site.py 1 file changed, 3 insertions(+), 0 deletions(-)
Approvals: Framawiki: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py index be63f15..4d22d01 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -2648,6 +2648,9 @@ if is_mw114: canonical_name = nsdata.pop('canonical')
+ if 'content' not in nsdata: # mw < 1.16 + nsdata['content'] = ns == 0 + default_case = Namespace.default_case(ns) if 'case' not in nsdata: nsdata['case'] = default_case or self.siteinfo['case']
pywikibot-commits@lists.wikimedia.org