diff options
Diffstat (limited to 'python/examples')
| -rwxr-xr-x | python/examples/dev-console.py | 6 | ||||
| -rw-r--r-- | python/examples/here-now-example.py | 5 | ||||
| -rwxr-xr-x | python/examples/history-example.py | 2 | ||||
| -rwxr-xr-x | python/examples/publish-example.py | 7 | ||||
| -rwxr-xr-x | python/examples/subscribe-example.py | 2 | 
5 files changed, 5 insertions, 17 deletions
| diff --git a/python/examples/dev-console.py b/python/examples/dev-console.py index 6ff5209..5bdbe8c 100755 --- a/python/examples/dev-console.py +++ b/python/examples/dev-console.py @@ -5,12 +5,8 @@  ## Copyright (c) 2010 Stephen Blum  ## http://www.pubnub.com/ -## ----------------------------------- -## PubNub 3.1 Real-time Push Cloud API -## ----------------------------------- -  import sys -from Pubnub import Pubnub +from Pubnub import PubnubAsync as Pubnub  from optparse import OptionParser diff --git a/python/examples/here-now-example.py b/python/examples/here-now-example.py index 9bb448c..0bc3015 100644 --- a/python/examples/here-now-example.py +++ b/python/examples/here-now-example.py @@ -5,12 +5,9 @@  ## Copyright (c) 2010 Stephen Blum  ## http://www.pubnub.com/ -## ----------------------------------- -## PubNub 3.1 Real-time Push Cloud API -## -----------------------------------  import sys -from Pubnub import Pubnub +from Pubnub import PubnubAsync 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' diff --git a/python/examples/history-example.py b/python/examples/history-example.py index 092c929..793c612 100755 --- a/python/examples/history-example.py +++ b/python/examples/history-example.py @@ -1,5 +1,5 @@  import sys -from Pubnub import Pubnub +from Pubnub import PubnubAsync as Pubnub  ## Initiat Class  pubnub = Pubnub('demo', 'demo', None, False) diff --git a/python/examples/publish-example.py b/python/examples/publish-example.py index 69ea053..1c57e4b 100755 --- a/python/examples/publish-example.py +++ b/python/examples/publish-example.py @@ -5,13 +5,8 @@  ## Copyright (c) 2010 Stephen Blum  ## http://www.pubnub.com/ -## ----------------------------------- -## PubNub 3.1 Real-time Push Cloud API -## ----------------------------------- -  import sys -from twisted.internet import reactor -from Pubnub import Pubnub +from Pubnub import PubnubAsync 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' diff --git a/python/examples/subscribe-example.py b/python/examples/subscribe-example.py index 0b1c949..9c16bbe 100755 --- a/python/examples/subscribe-example.py +++ b/python/examples/subscribe-example.py @@ -3,7 +3,7 @@ import threading  import time  import random  import string -from Pubnub import Pubnub +from Pubnub import PubnubAsync as Pubnub  ## Initiate Class  pubnub = Pubnub('demo', 'demo', None, False) | 
