Skip to content

Commit a2440f0

Browse files
committed
Python: Modernise semmle/python/dataflow/Files.qll
1 parent 6685a5e commit a2440f0

File tree

1 file changed

+1
-1
lines changed
  • python/ql/src/semmle/python/dataflow

1 file changed

+1
-1
lines changed

python/ql/src/semmle/python/dataflow/Files.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class OpenFileConfiguration extends TaintTracking::Configuration {
1111
OpenFileConfiguration() { this = "Open file configuration" }
1212

1313
override predicate isSource(DataFlow::Node src, TaintKind kind) {
14-
theOpenFunction().(FunctionObject).getACall() = src.asCfgNode() and
14+
src.asCfgNode() = Value::named("open").getACall() and
1515
kind instanceof OpenFile
1616
}
1717

0 commit comments

Comments
 (0)