Skip to content

Commit f1c9889

Browse files
committed
Update condition in _try_parse_stringlist check to explicitly compare against None
Signed-off-by: Cong Wang <cwang@multikernel.io>
1 parent a4bf36f commit f1c9889

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/kerf/dtc/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ def _property_to_dts(self, name: str, data: bytes, indent: str) -> str:
14811481

14821482
# Try parsing as stringlist
14831483
strings = self._try_parse_stringlist(data)
1484-
if strings:
1484+
if strings is not None:
14851485
quoted = ', '.join(f'"{s}"' for s in strings)
14861486
return f'{indent}{name} = {quoted};'
14871487

0 commit comments

Comments
 (0)