Skip to content

Commit d105037

Browse files
committed
Replace logger.warn with warning.
logger.warn is apparently deprecated
1 parent 27c013f commit d105037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpydoc/numpydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def mangle_docstrings(app, what, name, obj, options, lines):
178178
if app.config.numpydoc_validate:
179179
errors = validate(doc)["errors"]
180180
for err in errors:
181-
logger.warn(err)
181+
logger.warning(err)
182182

183183

184184
if (app.config.numpydoc_edit_link and hasattr(obj, '__name__') and

0 commit comments

Comments
 (0)