From 313f65324627c996cce9ccda055da0b283dc01c1 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sun, 4 Nov 2018 18:34:10 +0100 Subject: [PATCH] Add unobtrusive depreaction note to the first line of the docstring. --- lib/matplotlib/cbook/deprecation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/cbook/deprecation.py b/lib/matplotlib/cbook/deprecation.py index a29b42072305..2c0b3d5e897e 100644 --- a/lib/matplotlib/cbook/deprecation.py +++ b/lib/matplotlib/cbook/deprecation.py @@ -247,7 +247,7 @@ def wrapper(*args, **kwargs): old_doc = inspect.cleandoc(old_doc or '').strip('\n') message = message.strip() - new_doc = ('{old_doc}\n' + new_doc = ('[*Deprecated*] {old_doc}\n' '\n' '.. deprecated:: {since}\n' ' {message}'