From 1b49e712e12ba833f460324b95969b162d464edf Mon Sep 17 00:00:00 2001 From: Devendra Date: Wed, 7 May 2014 12:13:17 +0530 Subject: console changes and pep8 compliance --- python-twisted/examples/history.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python-twisted/examples/history.py') diff --git a/python-twisted/examples/history.py b/python-twisted/examples/history.py index 10e86b3..81974ec 100644 --- a/python-twisted/examples/history.py +++ b/python-twisted/examples/history.py @@ -20,13 +20,14 @@ ssl_on = len(sys.argv) > 5 and bool(sys.argv[5]) or False ## ----------------------------------------------------------------------- pubnub = Pubnub(publish_key=publish_key, subscribe_key=subscribe_key, secret_key=secret_key, cipher_key=cipher_key, ssl_on=ssl_on) -channel = 'a' +channel = 'a' # Asynchronous usage + def callback(message): print(message) -pubnub.history(channel, count=2 , callback=callback, error=callback) +pubnub.history(channel, count=2, callback=callback, error=callback) pubnub.start() -- cgit v1.2.3