This commit is contained in:
Thomas S Hatch 2013-02-05 15:54:56 -07:00
parent 7a9b209e01
commit 4c9ecfd674

View File

@ -40,7 +40,14 @@ class NestDisplay(object):
self.colors['ENDC'])
elif isinstance(ret, list) or isinstance(ret, tuple):
for ind in ret:
out = self.display(ind, indent, '- ', out)
if isinstance(ind, list) or isinstance(ind, tuple):
out += '{0}{1}|_{2}\n'.format(
self.colors['GREEN'],
' ' * indent,
self.colors['ENDC'])
out = self.display(ind, indent + 2, '- ', out)
else:
out = self.display(ind, indent, '- ', out)
elif isinstance(ret, dict):
if indent:
out += '{0}{1}{2}{3}\n'.format(