Skip to content

Commit f702e80

Browse files
committed
chore: sort the class and type tables by mnemonic
1 parent a5dd03f commit f702e80

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

‎src/zeroconf/const.py‎

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -158,35 +158,36 @@
158158

159159
# Wire values mapped to short human readable names, used only for reprs
160160
# and debug logging; lookups fall back to "?(value)" at the call sites.
161+
# Sorted by mnemonic.
161162
_CLASSES = {
162-
_CLASS_IN: "in",
163-
_CLASS_CS: "cs",
163+
_CLASS_ANY: "any",
164164
_CLASS_CH: "ch",
165+
_CLASS_CS: "cs",
165166
_CLASS_HS: "hs",
167+
_CLASS_IN: "in",
166168
_CLASS_NONE: "none",
167-
_CLASS_ANY: "any",
168169
}
169170
_TYPES = {
170171
_TYPE_A: "a",
171-
_TYPE_NS: "ns",
172-
_TYPE_MD: "md",
173-
_TYPE_MF: "mf",
172+
_TYPE_AAAA: "aaaa",
173+
_TYPE_ANY: "any",
174174
_TYPE_CNAME: "cname",
175-
_TYPE_SOA: "soa",
175+
_TYPE_HINFO: "hinfo",
176176
_TYPE_MB: "mb",
177+
_TYPE_MD: "md",
178+
_TYPE_MF: "mf",
177179
_TYPE_MG: "mg",
180+
_TYPE_MINFO: "minfo",
178181
_TYPE_MR: "mr",
182+
_TYPE_MX: "mx",
183+
_TYPE_NS: "ns",
184+
_TYPE_NSEC: "nsec",
179185
_TYPE_NULL: "null",
180-
_TYPE_WKS: "wks",
181186
_TYPE_PTR: "ptr",
182-
_TYPE_HINFO: "hinfo",
183-
_TYPE_MINFO: "minfo",
184-
_TYPE_MX: "mx",
185-
_TYPE_TXT: "txt",
186-
_TYPE_AAAA: "aaaa",
187+
_TYPE_SOA: "soa",
187188
_TYPE_SRV: "srv",
188-
_TYPE_NSEC: "nsec",
189-
_TYPE_ANY: "any",
189+
_TYPE_TXT: "txt",
190+
_TYPE_WKS: "wks",
190191
}
191192

192193
_ADDRESS_RECORD_TYPES = {_TYPE_A, _TYPE_AAAA}

0 commit comments

Comments
 (0)