mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Python: Clarify predicate a bit.
This commit is contained in:
@@ -404,11 +404,11 @@ cached module SsaSource {
|
||||
* to the __init__ module of that package.
|
||||
*/
|
||||
cached predicate init_module_submodule_defn(PythonSsaSourceVariable var, ControlFlowNode f) {
|
||||
var instanceof GlobalVariable and
|
||||
exists(Module init |
|
||||
init.isPackageInit() and exists(init.getPackage().getSubModule(var.getName())) and
|
||||
init.getEntryNode() = f and
|
||||
var.getScope() = init and
|
||||
var instanceof GlobalVariable
|
||||
var.getScope() = init
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user