From 394e5a5be2cc55877e4fc04743ee86678d2ecf67 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Sat, 22 Mar 2014 09:52:49 +0100 Subject: [PATCH] removed code, commment --- openlp/plugins/songs/forms/duplicatesongremovalform.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openlp/plugins/songs/forms/duplicatesongremovalform.py b/openlp/plugins/songs/forms/duplicatesongremovalform.py index 5b8ccebfe..54778de03 100644 --- a/openlp/plugins/songs/forms/duplicatesongremovalform.py +++ b/openlp/plugins/songs/forms/duplicatesongremovalform.py @@ -47,6 +47,9 @@ log = logging.getLogger(__name__) class SongIterator(object): + """ + This class implements an iterator for the song duplicate finder. The iterator returns a tuple of two songs. + """ def __init__(self, songs): self.songs = songs @@ -182,7 +185,6 @@ class DuplicateSongRemovalForm(OpenLPWizard, RegistryProperties): process_number = max(1, multiprocessing.cpu_count() - 1) pool = multiprocessing.Pool(process_number) song_list = SongIterator(songs) - #song_list = [(songs[outer_song_counter], songs[inner_song_counter]) for outer_song_counter in range(max_songs - 1) for inner_song_counter in range(outer_song_counter + 1, max_songs)] result = pool.imap_unordered(songs_probably_equal, song_list, 30) # Do not accept any further tasks. Also this closes the processes if all tasks are done. pool.close()