diff options
Diffstat (limited to 'python-tornado/examples/publish-example.py')
| -rw-r--r-- | python-tornado/examples/publish-example.py | 6 | 
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  ## ----------------------------------------------------------------------- | 
