summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Nothman <joel.nothman@gmail.com>2018-04-12 21:37:51 +1000
committerRalf Gommers <ralf.gommers@gmail.com>2019-04-21 17:39:20 +0200
commitebb6c9b80c3088f6db8732d45c578b0a9ea2c947 (patch)
tree4bedbf29225b1dbca161cfdd7216bcc29c501d68
parent8d4da3b0191f9ca35e2fed872c54045de233c83b (diff)
downloadnumpydoc-ebb6c9b80c3088f6db8732d45c578b0a9ea2c947.tar.gz
Fixes for Joris
-rw-r--r--numpydoc/numpydoc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpydoc/numpydoc.py b/numpydoc/numpydoc.py
index 0169dc2..0e96fad 100644
--- a/numpydoc/numpydoc.py
+++ b/numpydoc/numpydoc.py
@@ -28,11 +28,11 @@ except ImportError:
from collections import Callable
import hashlib
import itertools
-import logging
from docutils.nodes import citation, Text, section, comment, reference
import sphinx
-from sphinx.addnodes import pending_xref, desc_content, only
+from sphinx.addnodes import pending_xref, desc_content
+from sphinx.util import logging
if sphinx.__version__ < '1.0.1':
raise RuntimeError("Sphinx 1.0.1 or newer is required")
@@ -181,7 +181,7 @@ def mangle_docstrings(app, what, name, obj, options, lines):
doc = unicode(doc)
lines[:] = doc.split(u_NL)
except:
- logger.error('While processing numpydoc for %r', name)
+ logger.error('[numpydoc] While processing docstring for %r', name)
raise
if (app.config.numpydoc_edit_link and hasattr(obj, '__name__') and