[otBase] Add comment based on review feedback

This commit is contained in:
Behdad Esfahbod 2024-01-16 09:14:29 -07:00
parent d6482c9b32
commit 87ddb244ea

View File

@ -1146,6 +1146,9 @@ class BaseTable(object):
except KeyError:
raise # XXX on KeyError, raise nice error
value = conv.xmlRead(attrs, content, font)
# Some manually-written tables have a conv.repeat of ""
# to represent lists. Hence comparing to None here to
# allow those lists to be read correctly from XML.
if conv.repeat is not None:
seq = getattr(self, conv.name, None)
if seq is None: