Commit 8e5e27b
authored
Correctly handle try/except in exec_with_profiler
Do away with the PY2 distinction altogether; Python 2 supports the same `exec()` pattern. Now the `try:...finally:` block properly applies in both 2 and 3.1 parent abd66f1 commit 8e5e27b
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1126 | 1126 | | |
1127 | 1127 | | |
1128 | 1128 | | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
| 1129 | + | |
| 1130 | + | |
1134 | 1131 | | |
1135 | 1132 | | |
1136 | 1133 | | |
| |||
0 commit comments