Skip to content

Commit a8ae843

Browse files
committed
Python: Removes now obsolete original predicate
1 parent 7161ca5 commit a8ae843

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

python/ql/src/Exceptions/Raising.qll

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
import python
22

3-
/** Whether the raise statement 'r' raises 'type' from origin 'orig' */
4-
predicate type_or_typeof_objectapi(Raise r, ClassObject type, AstNode orig) {
5-
exists(Expr exception |
6-
exception = r.getRaised() |
7-
exception.refersTo(type, _, orig)
8-
or
9-
not exists(ClassObject exc_type | exception.refersTo(exc_type)) and
10-
not type = theTypeType() and // First value is an unknown exception type
11-
exception.refersTo(_, type, orig)
12-
)
13-
14-
}
15-
163
/** Whether the raise statement 'r' raises 'type' from origin 'orig' */
174
predicate type_or_typeof(Raise r, ClassValue type, AstNode orig) {
185
exists(Expr exception |

0 commit comments

Comments
 (0)