Commit f6e52d8
[python] Make detection of TimeoutError compatible with 3.10. (iree-org#19308)
* In python < 3.11, future methods throw
concurrent.futures.TimeoutError.
* In python 3.11, concurrent.futures.TimeoutError is a subclass of
TimeoutError and the former is deprecated.
* In python 3.10, TimeoutError exists so can have an except clause, but
it is not thrown by futures.
---------
Signed-off-by: Stella Laurenzo <[email protected]>1 parent abd6119 commit f6e52d8
File tree
2 files changed
+12
-7
lines changed- compiler/bindings/python
- iree/build
- test/build_api
2 files changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
522 | 528 | | |
523 | 529 | | |
524 | 530 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments