Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#305 build_doc_index claims to take string, but fails when given

open
nobody
5
2009-03-18
2009-03-18
Anonymous
No

From the epydoc API documentation, strings are expected, including a path to a directory:

items - The items to document, specified using any of the following:

* A string, naming a python package directory (e.g., 'epydoc/markup')
* A string, naming a python file (e.g., 'epydoc/docparser.py')
* A string, naming a python object (e.g., 'epydoc.docparser.DocParser')

However:

>>> from epydoc.docbuilder import build_doc_index
>>> docindex = build_doc_index("/path/to/source")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/python-x/lib/python2.5/site-packages/epydoc/docbuilder.py", line 206, in build_doc_index
doc_pairs = _get_docs_from_items(items, options)
File "/usr/local/python-x/lib/python2.5/site-packages/epydoc/docbuilder.py", line 334, in _get_docs_from_items
items.remove(item)
AttributeError: 'str' object has no attribute 'remove'

Discussion