Mpaa has uploaded a new change for review.
https://gerrit.wikimedia.org/r/275718
Change subject: [FIX] intersect_generators must use daemon threads
......................................................................
[FIX] intersect_generators must use daemon threads
Set threads in intersect_generators() as daemon threads, so that they
are killed automatically on program exit.
With the quit mechanism implemented via QuitKeyboardInterrupt,
KeyboardInterrupt is not catched any longer in intersect_generators()
and scripts based on Bot class hang when using pagegenrators with
parameter -intersect.
Change-Id: I61b2770afce4fd0c86ca0f0a7996432375e8b18a
---
M pywikibot/tools/__init__.py
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/18/275718/1
diff --git a/pywikibot/tools/__init__.py b/pywikibot/tools/__init__.py
index 94a6dcd..c2c5bba 100644
--- a/pywikibot/tools/__init__.py
+++ b/pywikibot/tools/__init__.py
@@ -695,6 +695,7 @@
for source in genlist:
threaded_gen = ThreadedGenerator(name=repr(source), target=source)
+ threaded_gen.daemon = True
thrlist.append(threaded_gen)
while True:
--
To view, visit https://gerrit.wikimedia.org/r/275718
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I61b2770afce4fd0c86ca0f0a7996432375e8b18a
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits