Commit ec2d20dc authored by Claude Paroz's avatar Claude Paroz

Guard against empty source_list in source_files()

parent 009823c0
......@@ -102,7 +102,7 @@ class DocFormat:
return [f for f in self.list_C_files() if f.suffix == '.page']
if isinstance(source_list, str):
sources += source_list.split()
else:
elif source_list:
sources += source_list
return [Path('C', src) for src in sources if src not in ('', '$(NULL)')]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment