Python: Modernizes query and updates expecteds

This commit is contained in:
Rebecca Valentine
2020-03-10 08:33:29 -07:00
parent 4c1d76ee9a
commit b36214ae47
2 changed files with 5 additions and 5 deletions

View File

@@ -15,9 +15,9 @@ predicate slice_method_name(string name) {
name = "__getslice__" or name = "__setslice__" or name = "__delslice__"
}
from PyFunctionObject f, string meth
from PythonFunctionValue f, string meth
where f.getFunction().isMethod() and not f.isOverridingMethod() and
where f.getScope().isMethod() and not f.isOverridingMethod() and
slice_method_name(meth) and f.getName() = meth