MCPcopy Create free account
hub / github.com/twisted/twisted / walkModules

Method walkModules

src/twisted/python/modules.py:753–759  ·  view source on GitHub ↗

Similar to L{iterModules}, this yields every module on the path, then every submodule in each package or entry.

(self, importPackages=False)

Source from the content-addressed store, hash-verified

751 yield from entry.iterModules()
752
753 def walkModules(self, importPackages=False):
754 """
755 Similar to L{iterModules}, this yields every module on the path, then every
756 submodule in each package or entry.
757 """
758 for package in self.iterModules():
759 yield from package.walkModules(importPackages=False)
760
761
762theSystemPath = PythonPath()

Callers 4

walkModulesMethod · 0.45
walkModulesMethod · 0.45
walkModulesFunction · 0.45

Calls 1

iterModulesMethod · 0.95

Tested by 1