File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
python/ql/src/semmle/python/types Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -260,19 +260,19 @@ class ExceptFlowNode extends ControlFlowNode {
260
260
)
261
261
}
262
262
263
- private predicate handledObject ( Object obj , ClassObject cls , ControlFlowNode origin ) {
263
+ private predicate handledObject_objectapi ( Object obj , ClassObject cls , ControlFlowNode origin ) {
264
264
this .getType ( ) .refersTo ( obj , cls , origin )
265
265
or
266
266
exists ( Object tup |
267
- this .handledObject ( tup , theTupleType ( ) , _) |
267
+ this .handledObject_objectapi ( tup , theTupleType ( ) , _) |
268
268
element_from_tuple ( tup ) .refersTo ( obj , cls , origin )
269
269
)
270
270
}
271
271
272
272
/** Gets the inferred type(s) that are handled by this node, splitting tuples if possible. */
273
273
pragma [ noinline]
274
274
predicate handledException_objectapi ( Object obj , ClassObject cls , ControlFlowNode origin ) {
275
- this .handledObject ( obj , cls , origin ) and not cls = theTupleType ( )
275
+ this .handledObject_objectapi ( obj , cls , origin ) and not cls = theTupleType ( )
276
276
or
277
277
not exists ( this .getNode ( ) .( ExceptStmt ) .getType ( ) ) and obj = theBaseExceptionType ( ) and cls = theTypeType ( ) and
278
278
origin = this
You can’t perform that action at this time.
0 commit comments