mirror of
https://github.com/github/codeql.git
synced 2026-01-01 08:42:06 +01:00
19 lines
724 B
Python
19 lines
724 B
Python
class PythonModule(_ModuleIteratorHelper): # '_ModuleIteratorHelper' and 'PythonModule' are old-style classes
|
|
|
|
# class definitions ....
|
|
|
|
def walkModules(self, importPackages=False):
|
|
if importPackages and self.isPackage():
|
|
self.load()
|
|
return super(PythonModule, self).walkModules(importPackages=importPackages) # super() will fail
|
|
|
|
|
|
class PythonModule2(_ModuleIteratorHelper): # call to super replaced with direct call to class
|
|
|
|
# class definitions ....
|
|
|
|
def walkModules(self, importPackages=False):
|
|
if importPackages and self.isPackage():
|
|
self.load()
|
|
return _ModuleIteratorHelper.__init__(PythonModule, self).walkModules(importPackages=importPackages)
|