diff options
Diffstat (limited to 'python-twisted')
| -rw-r--r-- | python-twisted/Makefile | 2 | ||||
| -rw-r--r-- | python-twisted/Pubnub.py | 5 | 
2 files changed, 3 insertions, 4 deletions
| diff --git a/python-twisted/Makefile b/python-twisted/Makefile index 4cd9305..13a5e5a 100644 --- a/python-twisted/Makefile +++ b/python-twisted/Makefile @@ -14,5 +14,5 @@ clean:  .PHONY: test  test: -	python tests/unit-test.py +	python ../common/unit-test-async.py diff --git a/python-twisted/Pubnub.py b/python-twisted/Pubnub.py index e317a9c..8b29236 100644 --- a/python-twisted/Pubnub.py +++ b/python-twisted/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  import json @@ -84,13 +84,12 @@ class Pubnub(PubnubCoreAsync):          request     = agent.request( 'GET', url, Headers(self.headers), None )          def received(response): -            #print response              finished = Deferred()              response.deliverBody(PubNubResponse(finished))              return finished          def complete(data): -            callback(data) +            callback(eval(data))          request.addCallback(received)          request.addBoth(complete) | 
