We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5269fb7 commit 3b45fbcCopy full SHA for 3b45fbc
1 file changed
python/ql/src/Expressions/UseofApply.ql
@@ -10,8 +10,10 @@
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
-major_version() = 2 and call.getFunction() = func and func.refersTo(Object::builtin("apply"))
18
+major_version() = 2 and call.getFunction() = func and func.pointsTo(TBuiltinFunctionObject(Builtin::special("apply")))
19
select call, "Call to the obsolete builtin function 'apply'."
0 commit comments