Skip to content

Commit 9068040

Browse files
authored
Merge pull request github#2964 from BekaValentine/python-objectapi-to-valueapi-notimplemented
Python: ObjectAPI to ValueAPI: NotImplemented
2 parents 464a034 + 2bbe475 commit 9068040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/Exceptions/NotImplemented.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import python
33

44
/** Holds if `notimpl` refers to `NotImplemented` or `NotImplemented()` in the `raise` statement */
55
predicate use_of_not_implemented_in_raise(Raise raise, Expr notimpl) {
6-
notimpl.refersTo(Object::notImplemented()) and
6+
notimpl.pointsTo(Value::named("NotImplemented")) and
77
(
88
notimpl = raise.getException() or
99
notimpl = raise.getException().(Call).getFunc()

0 commit comments

Comments
 (0)