jenkins-bot submitted this change.
[IMPR] use preload parameter of getCombinedGenerato to preload pages
Change-Id: I92c2459fc8ca46e2d1d3ded68d4d5aebcedd747c
---
M scripts/category.py
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/scripts/category.py b/scripts/category.py
index 3b25670..5f339a8 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -1553,14 +1553,11 @@
cat_db = CategoryDatabase(rebuild=rebuild)
if action == 'add':
- gen = gen_factory.getCombinedGenerator()
+ gen = gen_factory.getCombinedGenerator(preload=True)
if not gen:
# default for backwards compatibility
gen_factory.handle_arg('-links')
- gen = gen_factory.getCombinedGenerator()
- # The preloading generator is responsible for downloading multiple
- # pages from the wiki simultaneously.
- gen = pagegenerators.PreloadingGenerator(gen)
+ gen = gen_factory.getCombinedGenerator(preload=True)
bot = CategoryAddBot(gen,
newcat=options.get('to'),
sort_by_last_name=sort_by_last_name,
To view, visit change 834356. To unsubscribe, or for help writing mail filters, visit settings.