From 22cea1f921b93a2eedf2bff7590c4d3744c47299 Mon Sep 17 00:00:00 2001 From: Christoph Hoffmann Date: Mon, 2 Jun 2014 17:40:25 +0200 Subject: [PATCH] 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. --- lib/matplotlib/docstring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/docstring.py b/lib/matplotlib/docstring.py index 626137a52439..cf9537f0c6fe 100644 --- a/lib/matplotlib/docstring.py +++ b/lib/matplotlib/docstring.py @@ -87,7 +87,7 @@ def __init__(self, addendum, join=''): def __call__(self, func): docitems = [func.__doc__, self.addendum] - func.__doc__ = func.__doc__ and ''.join(docitems) + func.__doc__ = func.__doc__ and self.join.join(docitems) return func