def _calc_min_width(self, table):
width = len(table.name)<EOL>cap = table.consumed_capacity["<STR_LIT>"]<EOL>width = max(width, <NUM_LIT:4> + len("<STR_LIT>" % (cap["<STR_LIT>"], table.read_throughput)))<EOL>width = max(width, <NUM_LIT:4> + len("<STR_LIT>" % (cap["<STR_LIT>"], table.write_throughput)))<EOL>for index_name, cap in iteritems(table.consumed_capacity):<EOL><INDENT>if index_name == "<STR_LIT>":<EOL><INDENT>continue<EOL><DEDENT>index = table.global_indexes[index_name]<EOL>width = max(<EOL>width,<EOL><NUM_LIT:4> + len(index_name + "<STR_LIT>" % (cap["<STR_LIT>"], index.read_throughput)),<EOL>)<EOL>width = max(<EOL>width,<EOL><NUM_LIT:4><EOL>+ len(index_name + "<STR_LIT>" % (cap["<STR_LIT>"], index.write_throughput)),<EOL>)<EOL><DEDENT>return width<EOL>
Calculate the minimum allowable width for a table