jenkins-bot has submitted this change and it was merged.
Change subject: Category.subcategories() should yield objects that have the same properties, not just the same title, as the objects yielded by Category.members() ......................................................................
Category.subcategories() should yield objects that have the same properties, not just the same title, as the objects yielded by Category.members()
Change-Id: I4e31a22393ba1ce3216e0c6a65978fae8ec0c6d4 --- M pywikibot/page.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index 141224c..ad5c935 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -1803,7 +1803,7 @@ for member in self.site.categorymembers( self, namespaces=[14], step=step, total=total, content=content): - subcat = Category(self.site, member.title()) + subcat = Category(member) self._subcats.append(subcat) yield subcat if total is not None:
pywikibot-commits@lists.wikimedia.org