summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ExtractArchive.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-09 03:12:41 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-09 03:12:41 +0100
commit59f72bfc5ed721c80c821bd0ca1bc8daf0d49880 (patch)
tree05d0159405f2059bc89b3a55eab8ee4a94871aac /module/plugins/hooks/ExtractArchive.py
parent[PluginManager] Fix parse method (diff)
downloadpyload-59f72bfc5ed721c80c821bd0ca1bc8daf0d49880.tar.xz
Code cosmetics
Diffstat (limited to 'module/plugins/hooks/ExtractArchive.py')
-rw-r--r--module/plugins/hooks/ExtractArchive.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index 39da1ee7b..f5f30fc52 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -309,16 +309,16 @@ class ExtractArchive(Hook):
def reloadPasswords(self):
passwordfile = self.getConfig("passwordfile")
-
+
try:
passwords = []
with open(passwordfile, "a+") as f:
for pw in f.read().splitlines():
passwords.append(pw)
-
+
except IOError, e:
self.logError(str(e))
-
+
else:
self.passwords = passwords
@@ -330,7 +330,7 @@ class ExtractArchive(Hook):
if pw in self.passwords:
self.passwords.remove(pw)
-
+
self.passwords.insert(0, pw)
try: