Commit 48832dc
committed
Do not rely on external stack frame to exist
When using matplotlib in an embedded Python interpreter (such as in
Julia package PyCall.jl), stack frame may not exist outside
matplotlib. Therefore, it is better to not assume `frame.f_back` to
be an existing call frame.
See: JuliaPy/PyPlot.jl#4091 parent 4dbbd22 commit 48832dc
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1990 | 1990 | | |
1991 | 1991 | | |
1992 | 1992 | | |
| 1993 | + | |
| 1994 | + | |
1993 | 1995 | | |
1994 | 1996 | | |
1995 | 1997 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
350 | 351 | | |
351 | 352 | | |
352 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
353 | 363 | | |
354 | 364 | | |
355 | 365 | | |
| |||
0 commit comments