aboutsummaryrefslogtreecommitdiffstats
path: root/python-tornado
diff options
context:
space:
mode:
Diffstat (limited to 'python-tornado')
-rw-r--r--python-tornado/Makefile1
-rw-r--r--python-tornado/Pubnub.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/python-tornado/Makefile b/python-tornado/Makefile
index 2c33cf3..13a5e5a 100644
--- a/python-tornado/Makefile
+++ b/python-tornado/Makefile
@@ -14,4 +14,5 @@ clean:
.PHONY: test
test:
+ python ../common/unit-test-async.py
diff --git a/python-tornado/Pubnub.py b/python-tornado/Pubnub.py
index 55ca7ca..f22aecc 100644
--- a/python-tornado/Pubnub.py
+++ b/python-tornado/Pubnub.py
@@ -6,7 +6,7 @@
## http://www.pubnub.com/
## -----------------------------------
-## PubNub 3.3.2 Real-time Push Cloud API
+## PubNub 3.3.4 Real-time Push Cloud API
## -----------------------------------
import sys
from PubnubCoreAsync import PubnubCoreAsync
@@ -67,7 +67,7 @@ class Pubnub(PubnubCoreAsync):
#print self.headers
request = tornado.httpclient.HTTPRequest( url, 'GET', self.headers, connect_timeout=310, request_timeout=310 )
def responseCallback(response):
- callback(response._get_body())
+ callback(eval(response._get_body()))
self.http.fetch(
request,