electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 1f0d52dd525a60c749c9f492021a545b6b4a9e41
parent d87756ebd10530b5589fb6ce0e6cce56f22dfd48
Author: thomasv <thomasv@gitorious>
Date:   Thu, 12 Jan 2012 14:05:17 +0100

cosmetic change

Diffstat:
Mclient/electrum.py | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/client/electrum.py b/client/electrum.py @@ -228,14 +228,14 @@ class Interface: def set_port(self, port_number): self.port = port_number if self.use_http(): - self.handler = self.http_json_request + self.handler = self.http_json_handler else: - self.handler = self.native_request + self.handler = self.native_handler def use_http(self): return self.port in [80,81,8080,8081] - def native_request(self, method, params = ''): + def native_handler(self, method, params = ''): import time cmds = {'session.new':'new_session', 'peers':'peers', @@ -262,7 +262,7 @@ class Interface: out = ast.literal_eval( out ) return out - def http_json_request(self, method, params = []): + def http_json_handler(self, method, params = []): import urllib2, json, time if type(params) != type([]): params = [ params ] t1 = time.time()