diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-10-22 13:35:54 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-10-22 13:37:46 +0100 |
commit | d008988843f61efb57cb06a30b8a47a357e248a4 (patch) | |
tree | e1bd486fd53639561f5af179451f846e371b570c /slixmpp/plugins/xep_0323/stanza/sensordata.py | |
parent | dcacc7d7d50d3f720cb14f1382c6d4f5a13664a4 (diff) | |
download | slixmpp-d008988843f61efb57cb06a30b8a47a357e248a4.tar.gz slixmpp-d008988843f61efb57cb06a30b8a47a357e248a4.tar.bz2 slixmpp-d008988843f61efb57cb06a30b8a47a357e248a4.tar.xz slixmpp-d008988843f61efb57cb06a30b8a47a357e248a4.zip |
Manual cleanup of the remaining set([…]) and set((…)).
Diffstat (limited to 'slixmpp/plugins/xep_0323/stanza/sensordata.py')
-rw-r--r-- | slixmpp/plugins/xep_0323/stanza/sensordata.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/slixmpp/plugins/xep_0323/stanza/sensordata.py b/slixmpp/plugins/xep_0323/stanza/sensordata.py index 79094e4c..75bf5532 100644 --- a/slixmpp/plugins/xep_0323/stanza/sensordata.py +++ b/slixmpp/plugins/xep_0323/stanza/sensordata.py @@ -17,21 +17,25 @@ class Sensordata(ElementBase): namespace = 'urn:xmpp:iot:sensordata' name = 'sensordata' plugin_attrib = name - interfaces = set(tuple()) + interfaces = set() class FieldTypes(): """ All field types are optional booleans that default to False """ - field_types = set([ 'momentary','peak','status','computed','identity','historicalSecond','historicalMinute','historicalHour', \ - 'historicalDay','historicalWeek','historicalMonth','historicalQuarter','historicalYear','historicalOther']) + field_types = {'momentary', 'peak', 'status', 'computed', 'identity', + 'historicalSecond', 'historicalMinute', 'historicalHour', + 'historicalDay', 'historicalWeek', 'historicalMonth', + 'historicalQuarter', 'historicalYear', 'historicalOther'} class FieldStatus(): """ All field statuses are optional booleans that default to False """ - field_status = set([ 'missing','automaticEstimate','manualEstimate','manualReadout','automaticReadout','timeOffset','warning','error', \ - 'signed','invoiced','endOfSeries','powerFailure','invoiceConfirmed']) + field_status = {'missing', 'automaticEstimate', 'manualEstimate', + 'manualReadout', 'automaticReadout', 'timeOffset', + 'warning', 'error', 'signed', 'invoiced', 'endOfSeries', + 'powerFailure', 'invoiceConfirmed'} class Request(ElementBase): namespace = 'urn:xmpp:iot:sensordata' |