def is_excluded(self, name):
        """Check whether the named module should be excluded."""
        for excl in self.exclude:
            if self.is_dotted_prefix(excl, name):
                return True
        return False
Check whether the named module should be excluded.
tools/module_bundler.py