summaryrefslogtreecommitdiffstats
path: root/module/plugins/container/TXT.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/container/TXT.py')
-rw-r--r--module/plugins/container/TXT.py10
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: