(items)
| 27 | return result |
| 28 | |
| 29 | def format2cols(items): |
| 30 | max_width = max(len(str(x)) for (x,y) in items) |
| 31 | template = "%%%ds %%s" % max_width |
| 32 | return "\n".join(template % (x, y) for (x, y) in items) |
| 33 | |
| 34 | def sort_uniq_c(seq): |
| 35 | "Duplicate unix's 'sort | uniq -c | sort -nr'" |
no test coverage detected