We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a04004 commit a2c1d5fCopy full SHA for a2c1d5f
1 file changed
python/ql/src/Expressions/UseofApply.ql
@@ -10,10 +10,9 @@
10
*/
11
12
import python
13
-private import semmle.python.objects.TObject
14
private import semmle.python.types.Builtins
15
16
from CallNode call, ControlFlowNode func
17
where
18
-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"))
19
select call, "Call to the obsolete builtin function 'apply'."
0 commit comments