diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-04-11 12:18:22 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-04-11 12:18:22 +0200 |
commit | d68938a9a7fbfb079b0a6de469de766b5892d769 (patch) | |
tree | 443b21cc277126fa44486bc940f8aa521f92564d /module/plugins/container/LinkList.py | |
parent | Use wait to set time in SimpleHoster plugins (diff) | |
download | pyload-d68938a9a7fbfb079b0a6de469de766b5892d769.tar.xz |
Remove bad whitespaces
Merges vuolter/pyload@e4b2562
Diffstat (limited to 'module/plugins/container/LinkList.py')
-rw-r--r-- | module/plugins/container/LinkList.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/module/plugins/container/LinkList.py b/module/plugins/container/LinkList.py index 6baf9f55d..90ff40d20 100644 --- a/module/plugins/container/LinkList.py +++ b/module/plugins/container/LinkList.py @@ -20,22 +20,22 @@ class LinkList(Container): file_enc = codecs.lookup(self.getConfig("encoding")).name except: file_enc = "utf-8" - + print repr(pyfile.url) print pyfile.url - + file_name = fs_encode(pyfile.url) - + txt = codecs.open(file_name, 'r', file_enc) links = txt.readlines() curPack = "Parsed links from %s" % pyfile.name - + packages = {curPack:[],} - + for link in links: link = link.strip() if not link: continue - + if link.startswith(";"): continue if link.startswith("[") and link.endswith("]"): @@ -45,15 +45,15 @@ class LinkList(Container): continue packages[curPack].append(link) txt.close() - + # empty packages fix delete = [] - + for key,value in packages.iteritems(): if not value: delete.append(key) - + for key in delete: del packages[key] @@ -63,6 +63,6 @@ class LinkList(Container): txt.close() except: self.log.warning(_("LinkList could not be cleared.")) - + for name, links in packages.iteritems(): self.packages.append((name, links, name)) |