Commit 7100b39
committed
Fix savefig extra argument warning on PyPy.
PyPy adds an additional frame for `functools.wraps`, with `_functools`
as the name, which causes the code to decide we're no longer in
Matplotlib code too early, and not find `print_figure`. This causes
warnings about unexpected arguments.1 parent 00c63a3 commit 7100b39
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1618 | 1618 | | |
1619 | 1619 | | |
1620 | 1620 | | |
| 1621 | + | |
| 1622 | + | |
1621 | 1623 | | |
1622 | | - | |
1623 | | - | |
1624 | | - | |
1625 | | - | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
1626 | 1627 | | |
1627 | 1628 | | |
1628 | 1629 | | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
1629 | 1635 | | |
1630 | 1636 | | |
1631 | 1637 | | |
| |||
0 commit comments