Repository navigation
Commit f6cbc3d
committed
Stop suppressing warnings around the session constructor
warnings.catch_warnings swaps the module-global filter list, not a thread-local
one, so the window silently dropped every other thread's DeprecationWarning for
the duration of the construction. Keeping it cost more than the duplicate
warning it hid, and the two warnings are not redundant: one names the factory
the caller used, the other the class it keeps using afterwards.
Without it the method body is main's again, and warnings is no longer imported.
Signed-off-by: Honglin Cao <hocao@nvidia.com>1 parent 30f4fab commit f6cbc3d
2 files changed
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
502 | 501 | | |
503 | 502 | | |
504 | 503 | | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
| 504 | + | |
510 | 505 | | |
511 | 506 | | |
512 | 507 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1051 | 1051 | | |
1052 | 1052 | | |
1053 | 1053 | | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1057 | 1060 | | |
1058 | 1061 | | |
1059 | 1062 | | |
| |||
0 commit comments