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:
--
To view, visit https://gerrit.wikimedia.org/r/131644
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4e31a22393ba1ce3216e0c6a65978fae8ec0c6d4
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Russell Blau <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Ricordisamoa <[email protected]>
Gerrit-Reviewer: Russell Blau <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits