Fixed textui.print_keyval for cases when the row is a list instead of a tuple

This commit is contained in:
Jason Gerard DeRose 2008-11-14 22:03:31 -07:00
parent 9de56d43f0
commit e3fec8f219

View File

@ -195,8 +195,8 @@ class textui(backend.Backend):
Also see `textui.print_indented`.
"""
for row in rows:
self.print_indented('%s = %r' % row, indent)
for (key, value) in rows:
self.print_indented('%s = %r' % (key, value), indent)
def print_dashed(self, string, above=True, below=True):
"""