Commit 6b31b2d
[3.13] pythongh-125519: Improve traceback if
pythongh-125519: Improve traceback if `importlib.reload()` is called with a non-module object (pythonGH-125520)
(cherry picked from commit c5c21fe)
Co-authored-by: Alex Waygood <[email protected]>importlib.reload() is called with a non-module object (pythonGH-125520) (python#125768)1 parent 73bd5bd commit 6b31b2d
File tree
3 files changed
+19
-1
lines changed- Lib
- importlib
- test/test_importlib
- Misc/NEWS.d/next/Library
3 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
353 | 355 | | |
354 | 356 | | |
355 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
356 | 372 | | |
357 | 373 | | |
358 | 374 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments