Xqt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/231750
Change subject: [IMPR] redefine class instance
......................................................................
[IMPR] redefine class instance
item.title is a page object which can be easily converted to a subclass object.
BasePage.__init__ does the job.
Change-Id: I84e3db3ace905508659cc23b45cec75bac0e53ab
---
M pywikibot/page.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/50/231750/1
diff --git a/pywikibot/page.py b/pywikibot/page.py
index 5c0ee75..a8d6523 100644
--- a/pywikibot/page.py
+++ b/pywikibot/page.py
@@ -3048,7 +3048,7 @@
raise StopIteration
for item in self.site.logevents(
logtype='upload', user=self.username, total=total):
- yield (FilePage(self.site, item.title().title()),
+ yield (FilePage(item.title()),
unicode(item.timestamp()),
item.comment(),
item.pageid() > 0
--
To view, visit https://gerrit.wikimedia.org/r/231750
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I84e3db3ace905508659cc23b45cec75bac0e53ab
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits