summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2020-05-23 07:35:57 -0600
committerGitHub <noreply@github.com>2020-05-23 07:35:57 -0600
commita699f2879ab3836fe6d1619c518c85956a3075c1 (patch)
tree587a19c249ebb31a255ab243e056f698264ccbf8 /numpy/lib/utils.py
parent471a2ceaf3f0b77ca63003b196e8ba8c54283806 (diff)
parentccc2427f8f3d5d7605c822b6143cfbc8058c0f3c (diff)
downloadnumpy-a699f2879ab3836fe6d1619c518c85956a3075c1.tar.gz
Merge pull request #16349 from larsoner/dep
BUG: Indentation for docstrings
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r--numpy/lib/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py
index 781ef47bc..d511c2a40 100644
--- a/numpy/lib/utils.py
+++ b/numpy/lib/utils.py
@@ -1,5 +1,6 @@
import os
import sys
+import textwrap
import types
import re
import warnings
@@ -114,6 +115,7 @@ class _Deprecate:
break
skip += len(line) + 1
doc = doc[skip:]
+ depdoc = textwrap.indent(depdoc, ' ' * indent)
doc = '\n\n'.join([depdoc, doc])
newfunc.__doc__ = doc
try: