[Twisted-Python] Lore bug

Jp Calderone exarkun at twistedmatrix.com
Wed Mar 19 12:23:54 EST 2003

  This isn't the bug I meant to report, but I found it in the process of
trying to make an example of that one.  So:

<pre class="python">
def foo():
    print 'bar'

  Running lore on this file (using the PyCon template), raises this

Traceback (most recent call last):#######] (foo)                               
  File "/usr/local/bin/lore", line 30, in ?
  File "/home/exarkun/projects/python/Twisted/twisted/scripts/lore.py", line 87, in run
  File "/home/exarkun/projects/python/Twisted/twisted/lore/process.py", line 60, in generate
    self.df(fullpath, linkrel)
  File "/home/exarkun/projects/python/Twisted/twisted/lore/default.py", line 41, in <lambda>
    d['baseurl'], templ)
  File "/home/exarkun/projects/python/Twisted/twisted/lore/tree.py", line 231, in doFile
    munge(doc, cn, linkrel, os.path.dirname(fn), fn, ext, url)
  File "/home/exarkun/projects/python/Twisted/twisted/lore/tree.py", line 201, in munge
    title = domhelpers.findNodesNamed(document, 'title')[0].childNodes
IndexError: list index out of range


Where a calculator on the ENIAC is equipped with 18,000 vacuum tubes and
weighs 30 tons, computers in the future may have only 1,000 vacuum tubes and
weigh only 1.5 tons.    -- Popular Mechanics, March 1949
 up 16 days, 10:00, 7 users, load average: 0.01, 0.03, 0.00
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20030319/d47d1c11/attachment.pgp 

More information about the Twisted-Python mailing list