1
0

stop using eval

This commit is contained in:
Bryan Stitt
2013-11-11 22:03:20 -08:00
parent d93c642c5c
commit 91061752cf
5 changed files with 16 additions and 10 deletions

View File

@@ -112,8 +112,8 @@ class Commands:
cmd = known_commands[method]
if cmd.requires_password and self.wallet.use_encryption:
self.password = apply(password_getter,())
f = eval('self.'+method)
result = apply(f,args)
f = getattr(self, method)
result = f(*args)
self.password = None
if self._callback:
apply(self._callback, ())