mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Python: Fix accidentally introduced cartesian product.
This commit is contained in:
@@ -193,6 +193,7 @@ private predicate defn_of_class_attribute(Assign asgn, Class c, string name) {
|
||||
/* Holds if `value` is a value assigned to the `name`d attribute of module `m`. */
|
||||
private predicate defn_of_module_attribute(ControlFlowNode value, Module m, string name) {
|
||||
exists(DefinitionNode def |
|
||||
def.getScope() = m and
|
||||
def.getValue() = value and
|
||||
def.(NameNode).getId() = name
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user