I have the following string appearing in a docstring:
/tmpdir/html/*/*.html
epydoc was run with the reStructureText option on. So it interpreted */* as an emphasis. That's fine. But then when walking the tree it had generated, it failed:
File "/Library/Python/2.5/site-packages/epydoc/cli.py", line 952, in main
write_html(docindex, options)
File "/Library/Python/2.5/site-packages/epydoc/cli.py", line 1002, in write_html
html_writer.write(options.target['html'])
File "/Library/Python/2.5/site-packages/epydoc/docwriter/html.py", line 576, in write
'term': self.build_term_index()}
File "/Library/Python/2.5/site-packages/epydoc/docwriter/html.py", line 2956, in build_term_index
items += self._terms_from_docstring(url, doc, doc.descr)
File "/Library/Python/2.5/site-packages/epydoc/docwriter/html.py", line 2975, in _terms_from_docstring
for term in parsed_docstring.index_terms():
File "/Library/Python/2.5/site-packages/epydoc/markup/restructuredtext.py", line 218, in index_terms
self._document.walkabout(visitor)
File "/Users/luc/Developer/cctbx/cctbx_sources/docutils/docutils/nodes.py", line 153, in walkabout
File "/Users/luc/Developer/cctbx/cctbx_sources/docutils/docutils/nodes.py", line 153, in walkabout
File "/Users/luc/Developer/cctbx/cctbx_sources/docutils/docutils/nodes.py", line 145, in walkabout
File "/Users/luc/Developer/cctbx/cctbx_sources/docutils/docutils/nodes.py", line 1311, in dispatch_visit
File "/Library/Python/2.5/site-packages/epydoc/markup/restructuredtext.py", line 352, in visit_emphasis
if 'term' in node.get('classes')
TypeError: argument of type 'NoneType' is not iterable
And node.astext() is u"/" whereas for its parent it's the string ".... /tmpdir/html/*/*.html".
sorry, I forgot to login before submitting that bug. Hopefully, that comment will make it easier to get back to me if need be.