diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-02-24 23:57:38 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-02-24 23:57:38 +0100 |
commit | ed9bbe7332d8f6e2bf33b09ae5382a4925d2eac3 (patch) | |
tree | 4e5faec5180724e2e45869aa0e1fd276e27f179c /module/plugins/hooks | |
parent | [RSDF] Check if broken (diff) | |
download | pyload-ed9bbe7332d8f6e2bf33b09ae5382a4925d2eac3.tar.xz |
[ExternalScripts] Code cosmetics
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r-- | module/plugins/hooks/ExternalScripts.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/module/plugins/hooks/ExternalScripts.py b/module/plugins/hooks/ExternalScripts.py index 8bd803308..3b9c9ca05 100644 --- a/module/plugins/hooks/ExternalScripts.py +++ b/module/plugins/hooks/ExternalScripts.py @@ -3,8 +3,6 @@ import os import subprocess -from itertools import chain - from module.plugins.Hook import Hook from module.utils import save_join @@ -142,10 +140,10 @@ class ExternalScripts(Hook): def allDownloadsFinished(self): - for script in chain(self.scripts['all_downloads_finished'], self.scripts['all_dls_finished']): + for script in self.scripts['all_downloads_finished'] + self.scripts['all_dls_finished']): self.callScript(script) def allDownloadsProcessed(self): - for script in chain(self.scripts['all_downloads_processed'], self.scripts['all_dls_processed']): + for script in self.scripts['all_downloads_processed'] + self.scripts['all_dls_processed']: self.callScript(script) |