diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-02-27 04:39:45 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-02-27 04:39:45 +0100 |
commit | c039d5822c4c53661813b6fd8e2252a3b633532e (patch) | |
tree | cc8879538e10836ef913b0e487d0db0d1bc74603 /module/plugins/container/TXT.py | |
parent | Merge pull request #1213 from immenz/dev_extract (diff) | |
download | pyload-c039d5822c4c53661813b6fd8e2252a3b633532e.tar.xz |
[container] Code cosmetics
Diffstat (limited to 'module/plugins/container/TXT.py')
-rw-r--r-- | module/plugins/container/TXT.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/container/TXT.py b/module/plugins/container/TXT.py index 585da8ac6..98ca426d7 100644 --- a/module/plugins/container/TXT.py +++ b/module/plugins/container/TXT.py @@ -28,10 +28,10 @@ class TXT(Container): except Exception: encoding = "utf-8" - file = fs_encode(pyfile.url.strip()) - txt = codecs.open(file, 'r', encoding) - curPack = "Parsed links from %s" % pyfile.name - packages = {curPack:[],} + fs_filename = fs_encode(pyfile.url.strip()) + txt = codecs.open(fs_filename, 'r', encoding) + curPack = "Parsed links from %s" % pyfile.name + packages = {curPack:[],} for link in txt.readlines(): link = link.strip() @@ -59,7 +59,7 @@ class TXT(Container): if self.getConfig("flush"): try: - txt = open(file, 'wb') + txt = open(fs_filename, 'wb') txt.close() except IOError: |