diff options
Diffstat (limited to 'python-tornado')
| -rw-r--r-- | python-tornado/examples/history-example.py | 1 | ||||
| -rw-r--r-- | python-tornado/examples/publish-example.py | 2 | 
2 files changed, 2 insertions, 1 deletions
| diff --git a/python-tornado/examples/history-example.py b/python-tornado/examples/history-example.py index 879568b..3a5fd88 100644 --- a/python-tornado/examples/history-example.py +++ b/python-tornado/examples/history-example.py @@ -21,6 +21,7 @@ ssl_on = len(sys.argv) > 5 and bool(sys.argv[5]) or False  pubnub = Pubnub(publish_key, subscribe_key, secret_key, cipher_key, ssl_on)  channel = 'hello_world' +  def history_complete(messages):      print(messages)      pubnub.stop() diff --git a/python-tornado/examples/publish-example.py b/python-tornado/examples/publish-example.py index 5da6485..456dbf9 100644 --- a/python-tornado/examples/publish-example.py +++ b/python-tornado/examples/publish-example.py @@ -15,7 +15,7 @@ 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 = len(sys.argv) > 4 and sys.argv[4] or ''  ssl_on = len(sys.argv) > 5 and bool(sys.argv[5]) or False  ## ----------------------------------------------------------------------- | 
