You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An empty list of lepl.List or a subclass cannot be printed (or converted to
string):
>>> l = lepl.List()
>>> print l
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/exports/home/wagnerflo/.local/lib/python2.6/site-packages/LEPL-4.3.3-py2.6.egg/lepl/support/list.py", line 55, in __str__
return sexpr_to_tree(self)
File "/exports/home/wagnerflo/.local/lib/python2.6/site-packages/LEPL-4.3.3-py2.6.egg/lepl/support/list.py", line 165, in sexpr_to_tree
return '\n'.join(fold(list_)('', ''))
File "/exports/home/wagnerflo/.local/lib/python2.6/site-packages/LEPL-4.3.3-py2.6.egg/lepl/support/list.py", line 163, in <lambda>
return lambda first, rest: join(list(fun(first, rest)))
File "/exports/home/wagnerflo/.local/lib/python2.6/site-packages/LEPL-4.3.3-py2.6.egg/lepl/support/list.py", line 162, in fun
yield force[-1](rest + ' `- ', rest + ' ')
IndexError: list index out of range
A patch is attached which seems to fix the issue.
Original issue reported on code.google.com by flor...@wagner-flo.net on 28 Nov 2010 at 2:29
Original issue reported on code.google.com by
flor...@wagner-flo.net
on 28 Nov 2010 at 2:29Attachments:
The text was updated successfully, but these errors were encountered: