Skip to content

Commit 8c5ca3f

Browse files
committed
Python: remove control flow nodes
for module entry definitions from the dataflow graph.
1 parent 1087087 commit 8c5ca3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowPublic.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ newtype TNode =
3030
or
3131
node.getNode() instanceof Pattern
3232
or
33-
node = any(ScopeEntryDefinition def).getDefiningNode()
33+
node = any(ScopeEntryDefinition def | not def.getScope() instanceof Module).getDefiningNode()
3434
} or
3535
/**
3636
* A synthetic node representing the value of an object before a state change.

0 commit comments

Comments
 (0)