aboutsummaryrefslogtreecommitdiffstats
path: root/python-tornado/examples/publish-example.py
diff options
context:
space:
mode:
authorDevendra2014-04-24 01:33:45 +0530
committerDevendra2014-04-24 01:33:45 +0530
commitc98286f500b77dcf426367df0b688f536b77ea9b (patch)
tree824bec40ca73311fb417e4caa80fb602f2e53acd /python-tornado/examples/publish-example.py
parentc5d2fb446378e78e9e164dbea969edd57314dc4b (diff)
downloadpubnub-python-c98286f500b77dcf426367df0b688f536b77ea9b.tar.bz2
fixing imports
Diffstat (limited to 'python-tornado/examples/publish-example.py')
-rw-r--r--python-tornado/examples/publish-example.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/python-tornado/examples/publish-example.py b/python-tornado/examples/publish-example.py
index b02c41f..5da6485 100644
--- a/python-tornado/examples/publish-example.py
+++ b/python-tornado/examples/publish-example.py
@@ -10,14 +10,12 @@
## -----------------------------------
import sys
-from twisted.internet import reactor
-from Pubnub import Pubnub
+from Pubnub import PubnubTwisted as Pubnub
publish_key = len(sys.argv) > 1 and sys.argv[1] or 'demo'
subscribe_key = len(sys.argv) > 2 and sys.argv[2] or 'demo'
secret_key = len(sys.argv) > 3 and sys.argv[3] or 'demo'
-cipher_key = len(
- sys.argv) > 4 and sys.argv[4] or '' # (Cipher key is Optional)
+cipher_key = len( sys.argv) > 4 and sys.argv[4] or ''
ssl_on = len(sys.argv) > 5 and bool(sys.argv[5]) or False
## -----------------------------------------------------------------------