From b167008cd8be3d3a4ffffe0ec6982b8df9e7ff63 Mon Sep 17 00:00:00 2001 From: PacoVu Date: Wed, 5 Jun 2019 13:27:31 -0700 Subject: [PATCH 1/2] Update client.py - Fixed P2.7 and 3.x compatibility --- ringcentral/http/client.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ringcentral/http/client.py b/ringcentral/http/client.py index b8e066c..ef48c46 100644 --- a/ringcentral/http/client.py +++ b/ringcentral/http/client.py @@ -62,12 +62,13 @@ def create_request(self, method='', url='', query_params=None, body=None, header if query_params: if type(query_params) is dict: query = "" - for key, value in query_params.iteritems(): + for key, value in iter(query_params.items()): if type(value) is list: for k in value: - query += ("%s=%s&" % (key, urllib.quote_plus(k))) + query += ("%s=%s&" % (key, k)) else: - query += ("%s=%s&" % (key, urllib.quote_plus(value))) + query += ("%s=%s&" % (key, value)) + query = query[:-1] else: query = urlencode(query_params) if query: From 12c61e5b5c841bea168ce6ea342c46177a4e8fd5 Mon Sep 17 00:00:00 2001 From: PacoVu Date: Wed, 5 Jun 2019 15:13:03 -0700 Subject: [PATCH 2/2] Update requirements.txt - Set observarable 1.0* --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 0886cbb..705a43e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -observable>=0.3.1 +observable>=1.0.* pubnub==4.* pycryptodome>=3.4.4 -requests>=2.12.4 \ No newline at end of file +requests>=2.12.4