diff options
| author | Devendra | 2013-07-12 10:14:21 +0530 |
|---|---|---|
| committer | Devendra | 2013-07-12 10:14:21 +0530 |
| commit | 6616acbec40ac039b7bdabf7e8b3581e68c0b2cb (patch) | |
| tree | 3768b67e046aef37790c12f774838e539ac25a80 /python-tornado | |
| parent | 523802043bf1ce3616d3bac382f166e34984d5bf (diff) | |
| download | pubnub-python-6616acbec40ac039b7bdabf7e8b3581e68c0b2cb.tar.bz2 | |
adding common test from tornado and twisted
Diffstat (limited to 'python-tornado')
| -rw-r--r-- | python-tornado/Makefile | 1 | ||||
| -rw-r--r-- | python-tornado/Pubnub.py | 4 |
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, |
