8000 Fixed small bug in Appender class in docstring module. · matplotlib/matplotlib@22cea1f · GitHub
[go: up one dir, main page]

Skip to content

Commit 22cea1f

Browse files
committed
Fixed small bug in Appender class in docstring module.
Former Bug was that all strings will be append directly after old docstring independent of self.join Can be tested with matplotlib.pyplot.figimage.__doc__ where Appender class has been used.
1 parent ea8fa7b commit 22cea1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/docstring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __init__(self, addendum, join=''):
8787

8888
def __call__(self, func):
8989
docitems = [func.__doc__, self.addendum]
90-
func.__doc__ = func.__doc__ and ''.join(docitems)
90+
func.__doc__ = func.__doc__ and self.join.join(docitems)
9191
return func
9292

9393

0 commit comments

Comments
 (0)
0