Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e9f34f

Browse files
cgringmuthtobias47n9e
authored andcommitted
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 bc38dca commit 6e9f34f

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)