Commit 86a86e2
committed
Fix cbook._reshape2D for scalar object inputs.
Before the fix, `plt.hist(None)` would fail with `x must have 2 or fewer
dimensions`, which it does have. Now it fails with a bit later with
`unsupported operands type(s) for +: 'NoneType' and 'float'`, which is
hopefully clearer.1 parent 9a077e8 commit 86a86e2
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1990 | 1990 | | |
1991 | 1991 | | |
1992 | 1992 | | |
1993 | | - | |
| 1993 | + | |
1994 | 1994 | | |
1995 | 1995 | | |
1996 | 1996 | | |
| |||
0 commit comments