- # using the query_type dictionary. If the right name isn't present
- # in the dictionary, we use the (decimal) type id instead.
- type = int(type, 16) # "001c" -> 28
- type = query_type.get(type, type) # 28 -> "aaaa"
+ # using the query_type dictionary.
+ query_type = int(query_type, 16) # "001c" -> 28
+ query_type = QUERY_TYPE_NAME.get(query_type) # 28 -> "aaaa"