callback -> _callback
This commit is contained in:
parent
338b004ab3
commit
58be7c73c5
|
@ -103,7 +103,7 @@ class Commands:
|
||||||
def __init__(self, wallet, interface, callback = None):
|
def __init__(self, wallet, interface, callback = None):
|
||||||
self.wallet = wallet
|
self.wallet = wallet
|
||||||
self.interface = interface
|
self.interface = interface
|
||||||
self.callback = callback
|
self._callback = callback
|
||||||
|
|
||||||
def _run(self, method, args, password_getter):
|
def _run(self, method, args, password_getter):
|
||||||
if method in protected_commands:
|
if method in protected_commands:
|
||||||
|
@ -111,8 +111,8 @@ class Commands:
|
||||||
f = eval('self.'+method)
|
f = eval('self.'+method)
|
||||||
result = apply(f,args)
|
result = apply(f,args)
|
||||||
self.password = None
|
self.password = None
|
||||||
if self.callback:
|
if self._callback:
|
||||||
apply(self.callback, ())
|
apply(self._callback, ())
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def get_history(self, addr):
|
def get_history(self, addr):
|
||||||
|
|
Loading…
Reference in New Issue