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.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/container/TXT.py b/module/plugins/container/TXT.py
index 741538947..b31f42d49 100644
--- a/module/plugins/container/TXT.py
+++ b/module/plugins/container/TXT.py
@@ -3,13 +3,13 @@
import codecs
from module.plugins.internal.Container import Container
-from module.plugins.internal.utils import encode
+from module.plugins.internal.misc import encode
class TXT(Container):
__name__ = "TXT"
__type__ = "container"
- __version__ = "0.19"
+ __version__ = "0.20"
__status__ = "testing"
__pattern__ = r'.+\.(txt|text)$'
@@ -27,7 +27,7 @@ class TXT(Container):
def decrypt(self, pyfile):
try:
- encoding = codecs.lookup(self.get_config('encoding')).name
+ encoding = codecs.lookup(self.config.get('encoding')).name
except Exception:
encoding = "utf-8"
@@ -61,7 +61,7 @@ class TXT(Container):
if not value:
packages.pop(key, None)
- if self.get_config('flush'):
+ if self.config.get('flush'):
try:
txt = open(fs_filename, 'wb')
txt.close()