jenkins-bot merged this change.

View Change

Approvals: Framawiki: Looks good to me, approved jenkins-bot: Verified
[bugfix] enable Namespace.content for mw < 1.16

Bug: T203491
Change-Id: I7bc12a28c82f59f8159976ce996f6671ba23927f
---
M pywikibot/site.py
1 file changed, 3 insertions(+), 0 deletions(-)

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']

To view, visit change 458145. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I7bc12a28c82f59f8159976ce996f6671ba23927f
Gerrit-Change-Number: 458145
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Framawiki <framawiki@tools.wmflabs.org>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)