Python: Remove BuiltinFunctionObject module as it is clearer and more concise to use ModuleObject::builtin().

This commit is contained in:
Mark Shannon
2019-02-20 11:23:48 +00:00
parent 98be27a73e
commit adadd4942b
8 changed files with 28 additions and 82 deletions

View File

@@ -14,5 +14,5 @@ import python
from CallNode call, Context context, ControlFlowNode func
where
context.getAVersion().includes(2, _) and call.getFunction() = func and func.refersTo(context, BuiltinFunctionObject::input(), _, _)
context.getAVersion().includes(2, _) and call.getFunction() = func and func.refersTo(context, Object::builtin("input"), _, _)
select call, "The unsafe built-in function 'input' is used."