From 32f88e7e9f090f4e6aa7f6c9b568121a4a02985d Mon Sep 17 00:00:00 2001 From: Stefano Date: Fri, 18 Apr 2014 17:07:06 +0200 Subject: Fixed PEP8 violations (cherry picked from commit 71d58aa484ab332cad1eda29edf2df7bfc4e2e91) --- pyload/plugins/addons/ExternalScripts.py | 2 +- pyload/plugins/addons/RestartFailed.py | 2 +- pyload/plugins/addons/WindowsPhoneToastNotify.py | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'pyload') diff --git a/pyload/plugins/addons/ExternalScripts.py b/pyload/plugins/addons/ExternalScripts.py index 46c2e5e70..de9572c26 100644 --- a/pyload/plugins/addons/ExternalScripts.py +++ b/pyload/plugins/addons/ExternalScripts.py @@ -51,7 +51,7 @@ class ExternalScripts(Addon): for script_type, names in self.scripts.iteritems(): if names: - self.logInfo((_("Installed scripts for %s: ") % script_type ) + ", ".join([basename(x) for x in names])) + self.logInfo((_("Installed scripts for %s: ") % script_type) + ", ".join([basename(x) for x in names])) def initPluginType(self, folder, path): if not exists(path): diff --git a/pyload/plugins/addons/RestartFailed.py b/pyload/plugins/addons/RestartFailed.py index d3895634b..85553d738 100644 --- a/pyload/plugins/addons/RestartFailed.py +++ b/pyload/plugins/addons/RestartFailed.py @@ -31,7 +31,7 @@ class RestartFailed(Hook): event_list = ["pluginConfigChanged"] - MIN_INTERVAL = 15 * 60 #seconds + MIN_INTERVAL = 15 * 60 # seconds def periodical(self): self.logDebug("Restart all failed downloads now") diff --git a/pyload/plugins/addons/WindowsPhoneToastNotify.py b/pyload/plugins/addons/WindowsPhoneToastNotify.py index 538ded715..7c005fcbb 100644 --- a/pyload/plugins/addons/WindowsPhoneToastNotify.py +++ b/pyload/plugins/addons/WindowsPhoneToastNotify.py @@ -16,9 +16,11 @@ @author: RaNaN, Godofdream, zoidberg """ -import time, httplib +import time +import httplib from module.plugins.Hook import Hook + class WindowsPhoneToastNotify(Hook): __name__ = "WindowsPhoneToastNotify" __version__ = "0.02" -- cgit v1.2.3