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.
1 parent 167ede8 commit abecfdfCopy full SHA for abecfdf
1 file changed
lib/matplotlib/cbook/deprecation.py
@@ -1,5 +1,5 @@
1
import functools
2
-import textwrap
+import inspect
3
import warnings
4
5
@@ -215,7 +215,7 @@ def wrapper(*args, **kwargs):
215
warnings.warn(message, category, stacklevel=2)
216
return func(*args, **kwargs)
217
218
- old_doc = textwrap.dedent(old_doc or '').strip('\n')
+ old_doc = inspect.cleandoc(old_doc or '').strip('\n')
219
message = message.strip()
220
new_doc = ('.. deprecated:: {since}\n'
221
' {message}\n'
0 commit comments