def remove_excluded(self):
<EOL>sources = list(self.sources.values())<EOL>for src in sources:<EOL><INDENT>if src.excluded:<EOL><INDENT>del self.sources[src.name]<EOL><DEDENT>src.imports = [m for m in src.imports if not self._exclude(m)]<EOL>src.imported_by = [m for m in src.imported_by if not self._exclude(m)]<EOL><DEDENT>
Remove all sources marked as excluded.