diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2020-05-23 07:35:57 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-23 07:35:57 -0600 |
commit | a699f2879ab3836fe6d1619c518c85956a3075c1 (patch) | |
tree | 587a19c249ebb31a255ab243e056f698264ccbf8 /numpy/lib/utils.py | |
parent | 471a2ceaf3f0b77ca63003b196e8ba8c54283806 (diff) | |
parent | ccc2427f8f3d5d7605c822b6143cfbc8058c0f3c (diff) | |
download | numpy-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.py | 2 |
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: |