Make use of callable string
Instead of explicitly using eval, make use of the new callable string feature
This commit is contained in:
@@ -121,7 +121,7 @@ class user_interface (object):
|
||||
raise Exception('Invalid name for destination relation')
|
||||
|
||||
expr = parser.parse(query)
|
||||
result = eval(expr, self.relations)
|
||||
result = expr(self.relations)
|
||||
self.relations[relname] = result
|
||||
return result
|
||||
|
||||
|
Reference in New Issue
Block a user