From c66a4d4097a249efc029b761d6150378a54bf702 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 24 Feb 2015 18:58:40 +0100 Subject: Update the documentation and examples - update most of the examples with slixmpp - change the help channels pointed out in the doc - add a page listing differences from slixmpp and how to use asyncio nicely with slixmpp - fix some in-code rst documentation --- examples/IoT_TestDevice.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'examples/IoT_TestDevice.py') diff --git a/examples/IoT_TestDevice.py b/examples/IoT_TestDevice.py index b1968175..5b72994c 100755 --- a/examples/IoT_TestDevice.py +++ b/examples/IoT_TestDevice.py @@ -11,20 +11,12 @@ 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/Slixmpp']+sys.path - import logging -import unittest -import distutils.core -import datetime -from glob import glob -from os.path import splitext, basename, join as pjoin +from os.path import basename, join as pjoin from argparse import ArgumentParser from urllib import urlopen +from getpass import getpass import slixmpp from slixmpp.plugins.xep_0323.device import Device @@ -186,5 +178,5 @@ if __name__ == '__main__': logging.debug("ready ending") else: - print "noopp didn't happen" + print("noopp didn't happen") -- cgit v1.2.3