diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 12:22:20 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 12:22:20 +0200 |
commit | 906bb7c1ecc5c34aa93148894eef763f27eba98e (patch) | |
tree | 2f09a639cdd9e414e8f165a667c71a837288d4de /pyload/manager | |
parent | Revert damaged logo.png (diff) | |
download | pyload-906bb7c1ecc5c34aa93148894eef763f27eba98e.tar.xz |
Other import fixes
Diffstat (limited to 'pyload/manager')
-rw-r--r-- | pyload/manager/Plugin.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pyload/manager/Plugin.py b/pyload/manager/Plugin.py index 02ecc89a5..03bf9cacc 100644 --- a/pyload/manager/Plugin.py +++ b/pyload/manager/Plugin.py @@ -8,9 +8,7 @@ import sys import traceback import urllib -from itertools import chain - -from SafeEval import const_eval as literal_eval +import SafeEval class PluginManager(object): @@ -153,7 +151,7 @@ class PluginManager(object): config = self.CONFIG.findall(content) if config: try: - config = literal_eval(config[0].strip().replace("\n", "").replace("\r", "")) + config = SafeEval.const_eval(config[0].strip().replace("\n", "").replace("\r", "")) desc = self.DESC.findall(content) desc = desc[0][1] if desc else "" |