8000 Fix example in docstring of cbook._unfold. · matplotlib/matplotlib@089263f · GitHub
[go: up one dir, main page]

Skip to content

Commit 089263f

Browse files
committed
Fix example in docstring of cbook._unfold.
doctest blocks cannot contain empty lines. In theory they should be replaced by `<BLANKLINE>` (literally), but given that we don't actually run doctests, it seems nicer to just delete the empty lines. We didn't detect the bad docstring because the function is private and thus its doc not built, but this also confuses vim's autoindenter, so...
1 parent 4249e18 commit 089263f
Copy full SHA for 089263f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/matplotlib/cbook/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,11 +1958,9 @@ def _unfold(arr, axis, size, step):
19581958
array([[[ 0, 1, 2],
19591959
[ 2, 3, 4],
19601960
[ 4, 5, 6]],
1961-
19621961
[[10, 11, 12],
19631962
[12, 13, 14],
19641963
[14, 15, 16]],
1965-
19661964
[[20, 21, 22],
19671965
[22, 23, 24],
19681966
[24, 25, 26]]])

0 commit comments

Comments
 (0)
0