Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.4k
Commitd6b4f4b
gh-100218: correctly set `errno` when `socket.if_{nametoindex,indextoname}` raise `OSError` (GH-140905)Previously, socket.if_nametoindex() and socket.if_indextoname() could raisean `OSError` with a `None` errno. Now, the errno from libc is propagated.(cherry picked from commit3ce2d57)Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent432432b commitd6b4f4b
File tree
3 files changed
+14
-4
lines changed- Lib/test
- Misc/NEWS.d/next/Library
- Modules
3 files changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
1177 | | - | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
1178 | 1181 | | |
1179 | 1182 | | |
1180 | 1183 | | |
| |||
1194 | 1197 | | |
1195 | 1198 | | |
1196 | 1199 | | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
1197 | 1204 | | |
1198 | | - | |
1199 | 1205 | | |
1200 | 1206 | | |
1201 | 1207 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7277 | 7277 | | |
7278 | 7278 | | |
7279 | 7279 | | |
| 7280 | + | |
7280 | 7281 | | |
7281 | 7282 | | |
7282 | | - | |
7283 | | - | |
| 7283 | + | |
7284 | 7284 | | |
7285 | 7285 | | |
7286 | 7286 | | |
| |||
7300 | 7300 | | |
7301 | 7301 | | |
7302 | 7302 | | |
| 7303 | + | |
7303 | 7304 | | |
7304 | 7305 | | |
7305 | 7306 | | |
| |||
0 commit comments
Comments
(0)