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

Method walkModules

src/twisted/python/modules.py:173–182  ·  view source on GitHub ↗

Similar to L{iterModules}, this yields self, and then every module in my package or entry, and every submodule in each package or entry. In other words, this is deep, and L{iterModules} is shallow.

(self, importPackages=False)

Source from the content-addressed store, hash-verified

171 break
172
173 def walkModules(self, importPackages=False):
174 """
175 Similar to L{iterModules}, this yields self, and then every module in my
176 package or entry, and every submodule in each package or entry.
177
178 In other words, this is deep, and L{iterModules} is shallow.
179 """
180 yield self
181 for package in self.iterModules():
182 yield from package.walkModules(importPackages=importPackages)
183
184 def _subModuleName(self, mn):
185 """

Callers

nothing calls this directly

Calls 2

iterModulesMethod · 0.95
walkModulesMethod · 0.45

Tested by

no test coverage detected