jenkins-bot merged this change.
[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.