def add_dependencies(self, module):
if module in self._processed_modules:<EOL><INDENT>return None<EOL><DEDENT>if hasattr(module, "<STR_LIT>"):<EOL><INDENT>mn = module.__name__<EOL><DEDENT>else:<EOL><INDENT>mn = '<STR_LIT>'<EOL><DEDENT>_debug.debug("<STR_LIT>", module)<EOL>if mn == "<STR_LIT:__main__>":<EOL><INDENT>self._processed_modules.add(module)<EOL><DEDENT>elif not self._add_dependency(module, mn):<EOL><INDENT>_debug.debug("<STR_LIT>", mn)<EOL>return None<EOL><DEDENT>_debug.debug("<STR_LIT>", mn)<EOL>for dm in self._find_dependent_modules(module):<EOL><INDENT>_debug.debug("<STR_LIT>", dm, mn)<EOL>self.add_dependencies(dm)<EOL><DEDENT>
Adds a module and its dependencies to the list of dependencies.

Top-level entry point for adding a module and its dependecies.