diff options
author | Eric Larson <larson.eric.d@gmail.com> | 2020-05-22 12:36:33 -0400 |
---|---|---|
committer | Eric Larson <larson.eric.d@gmail.com> | 2020-05-22 12:45:51 -0400 |
commit | ccc2427f8f3d5d7605c822b6143cfbc8058c0f3c (patch) | |
tree | dfc1b4e82e0ad632a0e87b3f3dd1a6565cf43e2c /numpy/lib/utils.py | |
parent | 78593a1059f0a9c04385f97b2c1caa221efefa5f (diff) | |
download | numpy-ccc2427f8f3d5d7605c822b6143cfbc8058c0f3c.tar.gz |
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 f233c7240..ba8616aa3 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 @@ -117,6 +118,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: |