aboutsummaryrefslogtreecommitdiffstats
path: root/python/examples/here-now-example.py
diff options
context:
space:
mode:
authorDevendra2014-03-24 19:17:48 +0530
committerDevendra2014-03-24 19:17:48 +0530
commit80edcffbfe140a6d19c65deca24e1ba1c0f49b99 (patch)
tree4ece6bf2a480866f1028a5765a1fac0cabb68752 /python/examples/here-now-example.py
parent0874d7b862d8cff1c6d01f3d804a2509e181c959 (diff)
downloadpubnub-python-80edcffbfe140a6d19c65deca24e1ba1c0f49b99.tar.bz2
support for python3
Diffstat (limited to 'python/examples/here-now-example.py')
-rw-r--r--python/examples/here-now-example.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/here-now-example.py b/python/examples/here-now-example.py
index d2ca9bd..b9f0b02 100644
--- a/python/examples/here-now-example.py
+++ b/python/examples/here-now-example.py
@@ -11,7 +11,7 @@
import sys
sys.path.append('../')
-from twisted.internet import reactor
+sys.path.append('./')
from Pubnub import Pubnub
publish_key = len(sys.argv) > 1 and sys.argv[1] or 'demo'
@@ -28,7 +28,7 @@ pubnub = Pubnub( publish_key=publish_key, subscribe_key=subscribe_key,
crazy = 'hello_world'
def print_cb(message):
- print message
+ print(message)
pubnub.here_now( {
'channel' : crazy,