From bea1ae4036ca5d3c5e8958faf67c430f8608f80f Mon Sep 17 00:00:00 2001 From: Bhavin Date: Wed, 10 Jun 2015 18:02:27 -0400 Subject: [PATCH 1/2] Update client.py had to change it since it was throwing error on 2.7 --- norikraclient/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/norikraclient/client.py b/norikraclient/client.py index 1da4060..4330d74 100644 --- a/norikraclient/client.py +++ b/norikraclient/client.py @@ -13,7 +13,8 @@ class Client(object): def __init__(self, host="localhost", port=RPC_DEFAULT_PORT, opts={}): - addr = "http://{}:{}/".format(host, port) + # compatiblity for python < 3.1 + addr = "http://{h}:{p}/".format(h=host, p=port) self.addr = addr self.client = MsgPackClientOverHttp(addr) From 205d71480c185aa566351081eee95d2fef03d946 Mon Sep 17 00:00:00 2001 From: Bhavin Date: Tue, 16 Jun 2015 13:12:46 -0400 Subject: [PATCH 2/2] Update client.py * changing to simple Parameter usage * compatibility comment removed --- norikraclient/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/norikraclient/client.py b/norikraclient/client.py index 4330d74..f17cf72 100644 --- a/norikraclient/client.py +++ b/norikraclient/client.py @@ -13,8 +13,7 @@ class Client(object): def __init__(self, host="localhost", port=RPC_DEFAULT_PORT, opts={}): - # compatiblity for python < 3.1 - addr = "http://{h}:{p}/".format(h=host, p=port) + addr = "http://{0}:{1}/".format(host,port) self.addr = addr self.client = MsgPackClientOverHttp(addr)