summaryrefslogtreecommitdiffstats
path: root/pykolab/plugins/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/plugins/__init__.py')
-rw-r--r--pykolab/plugins/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/plugins/__init__.py b/pykolab/plugins/__init__.py
index 96e0044..ab110fb 100644
--- a/pykolab/plugins/__init__.py
+++ b/pykolab/plugins/__init__.py
@@ -204,7 +204,7 @@ class KolabPlugins(object):
continue
if hasattr(getattr(self, plugin), "%s_%s" % (func, option)):
- exec("retval = getattr(self, plugin).%s_%s(val)" % (func, option))
+ retval = eval("getattr(self, plugin).%s_%s(val)" % (func, option))
return retval
return False
@@ -261,7 +261,7 @@ class KolabPlugins(object):
if hasattr(getattr(self, plugin), bool):
try:
- exec("boolval = self.%s.%s" % (plugin, bool))
+ boolval = eval("self.%s.%s" % (plugin, bool))
except AttributeError:
pass
else: