File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
test/query-tests/Functions/general Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ predicate slice_method_name(string name) {
1515 name = "__getslice__" or name = "__setslice__" or name = "__delslice__"
1616}
1717
18- from PyFunctionObject f , string meth
18+ from PythonFunctionValue f , string meth
1919
20- where f .getFunction ( ) .isMethod ( ) and not f .isOverridingMethod ( ) and
20+ where f .getScope ( ) .isMethod ( ) and not f .isOverridingMethod ( ) and
2121 slice_method_name ( meth ) and f .getName ( ) = meth
2222
2323
Original file line number Diff line number Diff line change 1- | functions_test.py:99:5:99:40 | Function __getslice__ | __getslice__ method has been deprecated since Python 2.0 |
2- | functions_test.py:102:5:102:47 | Function __setslice__ | __setslice__ method has been deprecated since Python 2.0 |
3- | functions_test.py:105:5:105:40 | Function __delslice__ | __delslice__ method has been deprecated since Python 2.0 |
1+ | functions_test.py:99:5:99:40 | Function DeprecatedSliceMethods. __getslice__ | __getslice__ method has been deprecated since Python 2.0 |
2+ | functions_test.py:102:5:102:47 | Function DeprecatedSliceMethods. __setslice__ | __setslice__ method has been deprecated since Python 2.0 |
3+ | functions_test.py:105:5:105:40 | Function DeprecatedSliceMethods. __delslice__ | __delslice__ method has been deprecated since Python 2.0 |
You can’t perform that action at this time.
0 commit comments