summaryrefslogtreecommitdiffstats
path: root/pyload/manager
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 12:22:20 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 12:22:20 +0200
commit906bb7c1ecc5c34aa93148894eef763f27eba98e (patch)
tree2f09a639cdd9e414e8f165a667c71a837288d4de /pyload/manager
parentRevert damaged logo.png (diff)
downloadpyload-906bb7c1ecc5c34aa93148894eef763f27eba98e.tar.xz
Other import fixes
Diffstat (limited to 'pyload/manager')
-rw-r--r--pyload/manager/Plugin.py6
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 ""