summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Downer <joshua.downer@gmail.com>2015-05-13 17:24:06 -0400
committerJoshua Downer <joshua.downer@gmail.com>2015-05-13 17:24:06 -0400
commita0c6bf15e97a71787ffa4fec1850a995ba1d5446 (patch)
tree04cecce2de348f9666ecb15334cf372eebde0c73
parenta8ac115310c1b9aaa80cc0d48a1157396b29abd3 (diff)
downloadslixmpp-a0c6bf15e97a71787ffa4fec1850a995ba1d5446.tar.gz
slixmpp-a0c6bf15e97a71787ffa4fec1850a995ba1d5446.tar.bz2
slixmpp-a0c6bf15e97a71787ffa4fec1850a995ba1d5446.tar.xz
slixmpp-a0c6bf15e97a71787ffa4fec1850a995ba1d5446.zip
Fixed imports
Removed unused modules/packages and added getpass, which was missing.
-rwxr-xr-xexamples/IoT_TestDevice.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/examples/IoT_TestDevice.py b/examples/IoT_TestDevice.py
index cd80cee2..b85a0b7c 100755
--- a/examples/IoT_TestDevice.py
+++ b/examples/IoT_TestDevice.py
@@ -11,18 +11,10 @@
See the file LICENSE for copying permission.
"""
-import os
-import sys
-# This can be used when you are in a test environment and need to make paths right
-sys.path=['/Users/jocke/Dropbox/06_dev/SleekXMPP']+sys.path
-
+import getpass
import logging
-import unittest
-import distutils.core
-import datetime
+import sys
-from glob import glob
-from os.path import splitext, basename, join as pjoin
from optparse import OptionParser
from urllib import urlopen
@@ -39,8 +31,6 @@ else:
from sleekxmpp.plugins.xep_0323.device import Device
-#from sleekxmpp.exceptions import IqError, IqTimeout
-
class IoT_TestDevice(sleekxmpp.ClientXMPP):
"""