From f4683546d942f8e7ce3e31d40a8c51a1b73ebda5 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 22 Oct 2016 13:35:54 +0100 Subject: =?UTF-8?q?Manual=20cleanup=20of=20the=20remaining=20set([?= =?UTF-8?q?=E2=80=A6])=20and=20set((=E2=80=A6)).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- slixmpp/plugins/xep_0323/stanza/sensordata.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'slixmpp/plugins/xep_0323/stanza/sensordata.py') 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' -- cgit v1.2.3