diff options
| author | Devendra | 2014-05-07 12:13:17 +0530 | 
|---|---|---|
| committer | Devendra | 2014-05-07 12:13:17 +0530 | 
| commit | 1b49e712e12ba833f460324b95969b162d464edf (patch) | |
| tree | aefbb53635e8e3ae60c3892bf5c27eff0175b0f9 /python-twisted/examples/publish.py | |
| parent | a38e680ae11453c2f3d5082c2ad39004366a9ad7 (diff) | |
| download | pubnub-python-1b49e712e12ba833f460324b95969b162d464edf.tar.bz2 | |
console changes and pep8 compliance
Diffstat (limited to 'python-twisted/examples/publish.py')
| -rw-r--r-- | python-twisted/examples/publish.py | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/python-twisted/examples/publish.py b/python-twisted/examples/publish.py index f7b746f..13b5357 100644 --- a/python-twisted/examples/publish.py +++ b/python-twisted/examples/publish.py @@ -20,11 +20,12 @@ 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  = 'hello_world' -message  = 'Hello World !!!' +channel = 'hello_world' +message = 'Hello World !!!'  # Asynchronous usage +  def callback(message):      print(message) | 
