diff options
| author | Devendra | 2015-06-05 15:28:02 +0530 |
|---|---|---|
| committer | Devendra | 2015-06-05 15:28:02 +0530 |
| commit | 0badbe24a3eeb65ffb8629d7cf020240f12c1e97 (patch) | |
| tree | bd041832973107579bec0f8d8efbc983f4517ea0 | |
| parent | b035230efdb08d0813f0300d949522d1d9fc4c27 (diff) | |
| download | pubnub-python-0badbe24a3eeb65ffb8629d7cf020240f12c1e97.tar.bz2 | |
fix for grant
| -rw-r--r-- | Pubnub.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
