David Blume commited on 2016-09-11 11:30:16
Showing 1 changed files, with 1 additions and 1 deletions.
| ... | ... |
@@ -151,7 +151,7 @@ if __name__ == '__main__': |
| 151 | 151 |
col_widths = [max(len(value) for value in col) for col in cols] |
| 152 | 152 |
|
| 153 | 153 |
# Create a suitable format string for nice table output |
| 154 |
- fmt = "\t".join(["{%d:<%d}" % (i, v) for i, v in enumerate(col_widths)])
|
|
| 154 |
+ fmt = "\t".join(["{:<%d}" % i for i in col_widths])
|
|
| 155 | 155 |
|
| 156 | 156 |
# Print each row using the computed format |
| 157 | 157 |
print fmt.format(*rows.pop(0)) |
| 158 | 158 |