Commit eeaae26
authored
This will prevent emitting a resource warning when the execution was
interrupted by Ctrl-C between calling open() and entering a 'with' block
in "with open()".
(cherry picked from commit 3f4d90d)
Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent 13d1025 commit eeaae26
File tree
2 files changed
+13
-4
lines changed- Misc/NEWS.d/next/Core and Builtins
- Python
2 files changed
+13
-4
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1161 | 1164 | | |
1162 | | - | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
1163 | 1170 | | |
1164 | 1171 | | |
1165 | 1172 | | |
| |||
0 commit comments