Skip to content

Commit a2c1d5f

Browse files
committed
Moves to higher level API
1 parent 6a04004 commit a2c1d5f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

python/ql/src/Expressions/UseofApply.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
*/
1111

1212
import python
13-
private import semmle.python.objects.TObject
1413
private import semmle.python.types.Builtins
1514

1615
from CallNode call, ControlFlowNode func
1716
where
18-
major_version() = 2 and call.getFunction() = func and func.pointsTo(TBuiltinFunctionObject(Builtin::builtin("apply")))
17+
major_version() = 2 and call.getFunction() = func and func.pointsTo(Value::named("apply"))
1918
select call, "Call to the obsolete builtin function 'apply'."

0 commit comments

Comments
 (0)