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

@@ -24,7 +24,7 @@ predicate declaredInAll(Module m, StrConst name)
predicate mutates_globals(PythonModuleObject m) {
exists(CallNode globals |
globals = BuiltinFunctionObject::globals().getACall() and
globals = Object::builtin("globals").(FunctionObject).getACall() and
globals.getScope() = m.getModule() |
exists(AttrNode attr | attr.getObject() = globals)
or