Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e54ada1

Browse files
authored
python: rewrite not away
A `LocalSourceNode` is either a `ModuleVariableNode` or an `ExprNode`.
1 parent 5042c80 commit e54ada1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/ql/lib/semmle/python/ApiGraphs.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ module API {
721721
DataFlow::LocalSourceNode trackUseNode(DataFlow::LocalSourceNode src) {
722722
Stages::TypeTracking::ref() and
723723
result = trackUseNode(src, DataFlow::TypeTracker::end()) and
724-
not result instanceof DataFlow::ModuleVariableNode
724+
result instanceof DataFlow::ExprNode
725725
}
726726

727727
/**

0 commit comments

Comments
 (0)