python: rework hierarchy to avoid breaking API

This commit is contained in:
Rasmus Lerchedahl Petersen
2022-12-15 12:50:30 +01:00
parent 997e3599f0
commit a97bbdd0bc
8 changed files with 53 additions and 17 deletions

View File

@@ -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()
)
}