mirror of
https://github.com/github/codeql.git
synced 2026-03-21 06:57:09 +01:00
python: rework hierarchy to avoid breaking API
This commit is contained in:
@@ -52,7 +52,7 @@ predicate iter_not_exhausted(EssaVariable iterator) {
|
||||
predicate stop_iteration_handled(CallNode call) {
|
||||
exists(Try t |
|
||||
t.containsInScope(call.getNode()) and
|
||||
t.getANormalHandler().getType() = stopIteration().getAValueReachableFromSource().asExpr()
|
||||
t.getAHandler().getType() = stopIteration().getAValueReachableFromSource().asExpr()
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user