commit 58be7c73c5327ce36c8600523d9229f8df1b98b0
parent 338b004ab383fc36106669765f841bb68eeea76d
Author: thomasv <thomasv@gitorious>
Date: Wed, 27 Feb 2013 12:40:16 +0100
callback -> _callback
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/commands.py b/lib/commands.py
@@ -103,7 +103,7 @@ class Commands:
def __init__(self, wallet, interface, callback = None):
self.wallet = wallet
self.interface = interface
- self.callback = callback
+ self._callback = callback
def _run(self, method, args, password_getter):
if method in protected_commands:
@@ -111,8 +111,8 @@ class Commands:
f = eval('self.'+method)
result = apply(f,args)
self.password = None
- if self.callback:
- apply(self.callback, ())
+ if self._callback:
+ apply(self._callback, ())
return result
def get_history(self, addr):