From 0badbe24a3eeb65ffb8629d7cf020240f12c1e97 Mon Sep 17 00:00:00 2001 From: Devendra Date: Fri, 5 Jun 2015 15:28:02 +0530 Subject: fix for grant --- Pubnub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Pubnub.py') diff --git a/Pubnub.py b/Pubnub.py index b53056f..94e41a9 100644 --- a/Pubnub.py +++ b/Pubnub.py @@ -52,7 +52,7 @@ try: except ImportError: pass -import urllib +#import urllib import socket import sys import threading @@ -989,7 +989,7 @@ class PubnubBase(object): ch for ch in list(bit) ]) for bit in request["urlcomponents"]]) if ("urlparams" in request): - url = url + '?' + "&".join([x + "=" + urllib.quote(str(y), '') for x, y in request[ + url = url + '?' + "&".join([x + "=" + str(y) for x, y in request[ "urlparams"].items() if y is not None and len(str(y)) > 0]) return url -- cgit v1.2.3