Commit 3d4fcd7d authored by Tristan Gingold's avatar Tristan Gingold

sourcefileset.py: minor simplification.

parent 5683669a
......@@ -42,10 +42,9 @@ class SourceFileSet(set):
if isinstance(files, (SourceFileSet, set)):
for file_aux in files:
super(SourceFileSet, self).add(file_aux)
elif isinstance(files, File):
super(SourceFileSet, self).add(files)
else:
raise TypeError
assert isinstance(files, File)
super(SourceFileSet, self).add(files)
def filter(self, filetype):
"""Method that filters and returns all of the HDL source files
......
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