mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
Added PyWithContextExitInstruction that works as 'except' node in try-except statements, but for 'with context-manager' statements. This allows to see when it can recover from exception by checking the type of `contextlib.AbstractContextManager` Merge-request: IJ-MR-152213 Merged-by: Aleksandr Govenko <aleksandr.govenko@jetbrains.com> GitOrigin-RevId: fd5a139de31d47136cc86b4a7e090a20b73b8744
6 lines
87 B
Python
6 lines
87 B
Python
|
|
with cm1, cm2, cm3:
|
|
assert False, f()
|
|
print("Unreachable")
|
|
|
|
print("Reachable") |