From 98242257846e9276dd83adbea950f83e25a4f2b6 Mon Sep 17 00:00:00 2001 From: Devendra Date: Thu, 24 Apr 2014 02:07:56 +0530 Subject: pep8 compliance, removing redundant files --- python-tornado/examples/history-example.py | 1 + python-tornado/examples/publish-example.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'python-tornado/examples') 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 ## ----------------------------------------------------------------------- -- cgit v1.2.3