From 906bb7c1ecc5c34aa93148894eef763f27eba98e Mon Sep 17 00:00:00 2001
From: Walter Purcaro <vuolter@users.noreply.github.com>
Date: Tue, 12 May 2015 12:22:20 +0200
Subject: Other import fixes

---
 pyload/manager/Plugin.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'pyload/manager/Plugin.py')

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 ""
 
-- 
cgit v1.2.3