diff options
author | Robin Gloster <robin@loc-com.de> | 2014-08-18 00:52:24 +0200 |
---|---|---|
committer | Robin Gloster <robin@loc-com.de> | 2014-08-18 00:52:24 +0200 |
commit | 7265682a4d57d88956cb54f98f7a470465bbf417 (patch) | |
tree | d32011f02f648de9ba2d5ea99d5af1daefecbaf9 /examples | |
parent | 08c62a6bf1fe19ddf1f0c8fa441750f41f5d9436 (diff) | |
download | slixmpp-7265682a4d57d88956cb54f98f7a470465bbf417.tar.gz slixmpp-7265682a4d57d88956cb54f98f7a470465bbf417.tar.bz2 slixmpp-7265682a4d57d88956cb54f98f7a470465bbf417.tar.xz slixmpp-7265682a4d57d88956cb54f98f7a470465bbf417.zip |
cleanup semicolons, whitespace and mutable default arguments
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/IoT_TestDevice.py | 8 | ||||
-rwxr-xr-x | examples/roster_browser.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/IoT_TestDevice.py b/examples/IoT_TestDevice.py index 8105aaff..cd80cee2 100755 --- a/examples/IoT_TestDevice.py +++ b/examples/IoT_TestDevice.py @@ -179,13 +179,13 @@ if __name__ == '__main__': # node=opts.nodeid, # jid=xmpp.boundjid.full) - myDevice = TheDevice(opts.nodeid); + myDevice = TheDevice(opts.nodeid) # myDevice._add_field(name="Relay", typename="numeric", unit="Bool"); - myDevice._add_field(name="Temperature", typename="numeric", unit="C"); + myDevice._add_field(name="Temperature", typename="numeric", unit="C") myDevice._set_momentary_timestamp("2013-03-07T16:24:30") - myDevice._add_field_momentary_data("Temperature", "23.4", flags={"automaticReadout": "true"}); + myDevice._add_field_momentary_data("Temperature", "23.4", flags={"automaticReadout": "true"}) - xmpp['xep_0323'].register_node(nodeId=opts.nodeid, device=myDevice, commTimeout=10); + xmpp['xep_0323'].register_node(nodeId=opts.nodeid, device=myDevice, commTimeout=10) xmpp.beClientOrServer(server=True) while not(xmpp.testForRelease()): xmpp.connect() diff --git a/examples/roster_browser.py b/examples/roster_browser.py index 485ac941..a16de24c 100755 --- a/examples/roster_browser.py +++ b/examples/roster_browser.py @@ -68,7 +68,7 @@ class RosterBrowser(sleekxmpp.ClientXMPP): try: self.get_roster() except IqError as err: - print('Error: %' % err.iq['error']['condition']) + print('Error: %s' % err.iq['error']['condition']) except IqTimeout: print('Error: Request timed out') self.send_presence() |