Fix: attribute vendor codes retrieval

This commit is contained in:
Istvan Ruzman
2020-08-12 08:31:35 +02:00
parent 6e7d3e3761
commit 5c110669b2
2 changed files with 32 additions and 1 deletions

View File

@@ -454,7 +454,7 @@ class Dictionary:
self.cur_vendor.attrs[attrcode] = attribute
if self.cur_vendor != self.rfc_vendor:
codes = [26] + codes
codes = [26, self.cur_vendor.code] + codes
attrcode = codes[0] if len(codes) == 1 else tuple(codes)
self.attrindex[attrcode] = attribute
self.attrindex[name] = attribute