Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
Commit5e8c691
authored
This allows the caller to avoid creation of an exception when the channel is empty (just like `dict.get()` works). `ChannelEmptyError` is still raised if no default is provided.Automerge-Triggered-By:@ericsnowcurrently
1 parent6d86a23 commit5e8c691
File tree
2 files changed
+46
-11
lines changed- Lib/test
- Modules
2 files changed
+46
-11
lines changedLines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1302 | 1302 |
| |
1303 | 1303 |
| |
1304 | 1304 |
| |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
1305 | 1326 |
| |
1306 | 1327 |
| |
1307 | 1328 |
| |
|
Lines changed: 25 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1350 | 1350 |
| |
1351 | 1351 |
| |
1352 | 1352 |
| |
1353 |
| - | |
1354 |
| - | |
1355 |
| - | |
1356 | 1353 |
| |
1357 | 1354 |
| |
1358 | 1355 |
| |
1359 | 1356 |
| |
1360 | 1357 |
| |
| 1358 | + | |
| 1359 | + | |
1361 | 1360 |
| |
1362 | 1361 |
| |
1363 | 1362 |
| |
1364 |
| - | |
1365 |
| - | |
1366 | 1363 |
| |
1367 | 1364 |
| |
1368 | 1365 |
| |
| |||
2351 | 2348 |
| |
2352 | 2349 |
| |
2353 | 2350 |
| |
2354 |
| - | |
| 2351 | + | |
2355 | 2352 |
| |
2356 |
| - | |
2357 |
| - | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
2358 | 2356 |
| |
2359 | 2357 |
| |
| 2358 | + | |
2360 | 2359 |
| |
2361 |
| - | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
2362 | 2373 |
| |
2363 | 2374 |
| |
2364 | 2375 |
| |
2365 |
| - | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
2366 | 2379 |
| |
2367 |
| - | |
| 2380 | + | |
| 2381 | + | |
2368 | 2382 |
| |
2369 | 2383 |
| |
2370 | 2384 |
| |
|
0 commit comments
Comments
(0)