aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDevendra2014-04-24 01:33:45 +0530
committerDevendra2014-04-24 01:33:45 +0530
commitc98286f500b77dcf426367df0b688f536b77ea9b (patch)
tree824bec40ca73311fb417e4caa80fb602f2e53acd /python
parentc5d2fb446378e78e9e164dbea969edd57314dc4b (diff)
downloadpubnub-python-c98286f500b77dcf426367df0b688f536b77ea9b.tar.bz2
fixing imports
Diffstat (limited to 'python')
-rwxr-xr-xpython/examples/dev-console.py6
-rw-r--r--python/examples/here-now-example.py5
-rwxr-xr-xpython/examples/history-example.py2
-rwxr-xr-xpython/examples/publish-example.py7
-rwxr-xr-xpython/examples/subscribe-example.py2
-rwxr-xr-xpython/tests/detailed-history-unit-test.py2
-rwxr-xr-xpython/tests/subscribe-test.py2
-rwxr-xr-xpython/tests/unit-test.py2
8 files changed, 8 insertions, 20 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)
diff --git a/python/tests/detailed-history-unit-test.py b/python/tests/detailed-history-unit-test.py
index 9663de9..fd2c81a 100755
--- a/python/tests/detailed-history-unit-test.py
+++ b/python/tests/detailed-history-unit-test.py
@@ -10,7 +10,7 @@
## -----------------------------------
import sys
-from Pubnub import Pubnub
+from Pubnub import PubnubAsync as Pubnub
import unittest as unittest
diff --git a/python/tests/subscribe-test.py b/python/tests/subscribe-test.py
index a2bafde..a1b1826 100755
--- a/python/tests/subscribe-test.py
+++ b/python/tests/subscribe-test.py
@@ -11,7 +11,7 @@
import sys
import datetime
-from Pubnub import Pubnub
+from Pubnub import PubnubAsync as Pubnub
from functools import partial
from threading import current_thread
import threading
diff --git a/python/tests/unit-test.py b/python/tests/unit-test.py
index a9a462c..a48cbd3 100755
--- a/python/tests/unit-test.py
+++ b/python/tests/unit-test.py
@@ -10,7 +10,7 @@
## -----------------------------------
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'