Moves to higher level API

This commit is contained in:
Rebecca Valentine
2020-02-17 11:46:53 -08:00
parent 6a04004d94
commit a2c1d5ff45

View File

@@ -10,10 +10,9 @@
*/
import python
private import semmle.python.objects.TObject
private import semmle.python.types.Builtins
from CallNode call, ControlFlowNode func
where
major_version() = 2 and call.getFunction() = func and func.pointsTo(TBuiltinFunctionObject(Builtin::builtin("apply")))
major_version() = 2 and call.getFunction() = func and func.pointsTo(Value::named("apply"))
select call, "Call to the obsolete builtin function 'apply'."