jenkins-bot has submitted this change and it was merged.
Change subject: ItemPage class in page.py: correcting default namespace for new items (was ns 0). ......................................................................
ItemPage class in page.py: correcting default namespace for new items (was ns 0).
Change-Id: Ief2caf1ff8ffb5167d11278b54476a2531f6a120 --- M pywikibot/page.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index 1ba050e..b0f1259 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -3052,7 +3052,7 @@ """ # Special case for empty item if title is None or title == '-1': - super(ItemPage, self).__init__(site, u'-1', ns=0) + super(ItemPage, self).__init__(site, u'-1', ns=site.item_namespace) self.id = u'-1' return