Skip to content

Commit c45bdd7

Browse files
jnothmanrgommers
authored andcommitted
Fixes for Joris
1 parent 1953ef6 commit c45bdd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

numpydoc/numpydoc.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
from collections import Callable
2929
import hashlib
3030
import itertools
31-
import logging
3231

3332
from docutils.nodes import citation, Text, section, comment, reference
3433
import sphinx
35-
from sphinx.addnodes import pending_xref, desc_content, only
34+
from sphinx.addnodes import pending_xref, desc_content
35+
from sphinx.util import logging
3636

3737
if sphinx.__version__ < '1.0.1':
3838
raise RuntimeError("Sphinx 1.0.1 or newer is required")
@@ -174,7 +174,7 @@ def mangle_docstrings(app, what, name, obj, options, lines):
174174
doc = unicode(doc)
175175
lines[:] = doc.split(u_NL)
176176
except:
177-
logger.error('While processing numpydoc for %r', name)
177+
logger.error('[numpydoc] While processing docstring for %r', name)
178178
raise
179179

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

0 commit comments

Comments
 (0)