# HG changeset patch # User Paul Fisher # Date 1569634576 14400 # Node ID b52600fade25b4458722d8edeb9710497fad7d81 # Parent 18dc6245c91a7207140296300a74b30e4c4cc8d2 reader: Fix attr order in Reading. diff -r 18dc6245c91a -r b52600fade25 weatherlog/reader.py --- a/weatherlog/reader.py Fri Sep 27 21:28:38 2019 -0400 +++ b/weatherlog/reader.py Fri Sep 27 21:36:16 2019 -0400 @@ -23,15 +23,15 @@ class Reading(object): """A single reading from a temperature/humidity sensor.""" - # The timestamp of the reading. - timestamp = attr.ib(type=datetime.datetime, factory=_utc_now) - # The temperature, in degrees Celsius. temp_c = attr.ib(type=float) # The relative humidity, in percent. rh_pct = attr.ib(type=float) + # The timestamp of the reading. + timestamp = attr.ib(type=datetime.datetime, factory=_utc_now) + class Reader(metaclass=abc.ABCMeta): """Interface for a thing which reads temperatures."""