File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
python/ql/src/semmle/python/types Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ class ExceptFlowNode extends ControlFlowNode {
276
276
or
277
277
exists ( TupleValue tup |
278
278
this .handledObject ( tup , ClassValue:: tuple ( ) , _) |
279
- element_from_tuple ( tup ) . pointsTo ( val , origin )
279
+ val = tup . getItem ( _ ) and origin = val . getOrigin ( )
280
280
)
281
281
)
282
282
}
@@ -317,12 +317,6 @@ private ControlFlowNode element_from_tuple_objectapi(Object tuple) {
317
317
)
318
318
}
319
319
320
- private ControlFlowNode element_from_tuple ( Value tuple ) {
321
- exists ( Tuple t |
322
- t = tuple .getOrigin ( ) and result = t .getAnElt ( ) .getAFlowNode ( )
323
- )
324
- }
325
-
326
320
/** A Reraising node is the node at the end of a finally block (on the exceptional branch)
327
321
* that reraises the current exception.
328
322
*/
You can’t perform that action at this time.
0 commit comments