[svn] commit: r2973 - /branches/trac191-rebased/src/bin/stats/stats.py.in
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Sep 17 14:23:23 UTC 2010
Author: naokikambe
Date: Fri Sep 17 14:23:23 2010
New Revision: 2973
Log:
fixed according to #191, [comment:trac:191:17]
(changed into more ordinary way)
Modified:
branches/trac191-rebased/src/bin/stats/stats.py.in
Modified: branches/trac191-rebased/src/bin/stats/stats.py.in
==============================================================================
--- branches/trac191-rebased/src/bin/stats/stats.py.in (original)
+++ branches/trac191-rebased/src/bin/stats/stats.py.in Fri Sep 17 14:23:23 2010
@@ -201,7 +201,7 @@
try:
# add prefix "command_"
name = "command_" + cmd["command_name"]
- callback = eval("self." + name)
+ callback = getattr(self, name)
kwargs = self.initialize_data(cmd["command_args"])
self.add_event(Callback(name=name, callback=callback, args=(), kwargs=kwargs))
except AttributeError as ae:
More information about the bind10-changes
mailing list