Skip to content

Commit 97a6026

Browse files
lucascolleymdhaberrossbar
authored
docscrape: fixes from SciPy (#576)
Co-authored-by: Matt Haberland <[email protected]> Co-authored-by: Ross Barnowski <[email protected]>
1 parent 7716617 commit 97a6026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpydoc/docscrape.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def parse_item_name(text):
344344

345345
def _parse_index(self, section, content):
346346
"""
347-
.. index: default
347+
.. index:: default
348348
:refguide: something, else, and more
349349
350350
"""
@@ -446,7 +446,7 @@ def _error_location(self, msg, error=True):
446446
if error:
447447
raise ValueError(msg)
448448
else:
449-
warn(msg)
449+
warn(msg, stacklevel=3)
450450

451451
# string conversion routines
452452

0 commit comments

Comments
 (0)