Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bed61ee + 41917ef commit 2f796c4Copy full SHA for 2f796c4
1 file changed
lib/matplotlib/cbook/deprecation.py
@@ -245,11 +245,12 @@ def wrapper(*args, **kwargs):
245
return func(*args, **kwargs)
246
247
old_doc = inspect.cleandoc(old_doc or '').strip('\n')
248
+
249
message = message.strip()
- new_doc = ('.. deprecated:: {since}\n'
250
- ' {message}\n'
+ new_doc = ('{old_doc}\n'
251
'\n'
252
- '{old_doc}'
+ '.. deprecated:: {since}\n'
253
+ ' {message}'
254
.format(since=since, message=message, old_doc=old_doc))
255
if not old_doc:
256
# This is to prevent a spurious 'unexected unindent' warning from
0 commit comments