Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/81016
Change subject: Use a PreloadingGenerator to make the script faster
......................................................................
Use a PreloadingGenerator to make the script faster
Change-Id: Id8b411134b6337c3ab6f56f6dacb2e1500ebfa72
---
M scripts/harvest_template.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/16/81016/1
diff --git a/scripts/harvest_template.py b/scripts/harvest_template.py
index 05a9c52..d4bef05 100755
--- a/scripts/harvest_template.py
+++ b/scripts/harvest_template.py
@@ -40,7 +40,7 @@
* fields - A dictionary of fields that are of use to us
"""
- self.generator = generator
+ self.generator = pg.PreloadingGenerator(generator)
self.templateTitle = templateTitle.replace(u'_', u' ')
# TODO: Make it a list which also includes the redirects to the
template
self.fields = fields
--
To view, visit https://gerrit.wikimedia.org/r/81016
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id8b411134b6337c3ab6f56f6dacb2e1500ebfa72
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits