Open gsnedders opened 10 years ago
/home/gsnedders/gsnedders.html5.org/outliner/toc.py in buildToc(ElementTree=<lxml.etree._ElementTree object>, **kwargs={})
38
39 # Get a list of all the top level sections, and their depth (0)
40 sections = [(section, 0) for section in reversed(outline)]
41
42 # Loop over all sections in a DFS
sections undefined, section undefined, builtin reversed = <type 'reversed'>, outline = None
<type 'exceptions.TypeError'>: argument to reversed() must be a sequence
args = ('argument to reversed() must be a sequence',)
message = 'argument to reversed() must be a sequence'
Quite a few emails about this over several years. (I've been shit at maintaining this, I know.) See also https://stackoverflow.com/questions/3560813/what-is-a-good-html5-outliner.