From 6c2daa061e7250e009793eb286f0712913b0b80c Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Mon, 13 Aug 2018 23:22:40 -0300 Subject: [PATCH] Moved from Pool to ThreadPool --- beetsplug/absubmit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/absubmit.py b/beetsplug/absubmit.py index b8080fda5..acb80487b 100644 --- a/beetsplug/absubmit.py +++ b/beetsplug/absubmit.py @@ -25,7 +25,7 @@ import os import subprocess import tempfile -from multiprocessing import Pool +from multiprocessing import ThreadPool from distutils.spawn import find_executable import requests @@ -104,7 +104,7 @@ class AcousticBrainzSubmitPlugin(plugins.BeetsPlugin): def command(self, lib, opts, args): # Create threadpool - pool = Pool() + pool = ThreadPool() # Get items from arguments items = lib.items(ui.decargs(args)) pool.map(self.analyze_submit, items)