Xqt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/272454

Change subject: [IMPR] Don't preload pages to be touched.
......................................................................

[IMPR] Don't preload pages to be touched.

There is no reason (anymore) to preload pages because they are always
reloaded.

Change-Id: I3d1cf6be4124f525566ed2fd74350fa9c57a6661
---
M scripts/touch.py
1 file changed, 2 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/54/272454/1

diff --git a/scripts/touch.py b/scripts/touch.py
index cc59ca7..47ba19e 100755
--- a/scripts/touch.py
+++ b/scripts/touch.py
@@ -15,7 +15,7 @@
 
 """
 #
-# (C) Pywikibot team, 2009-2015
+# (C) Pywikibot team, 2009-2016
 #
 # Distributed under the terms of the MIT license.
 #
@@ -99,8 +99,7 @@
 
     gen = genFactory.getCombinedGenerator()
     if gen:
-        preloadingGen = pagegenerators.PreloadingGenerator(gen)
-        bot = bot_class(generator=preloadingGen, **options)
+        bot = bot_class(generator=gen, **options)
         pywikibot.Site().login()
         bot.run()
         return True

-- 
To view, visit https://gerrit.wikimedia.org/r/272454
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3d1cf6be4124f525566ed2fd74350fa9c57a6661
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

Reply via email to