def pformat(self):
lines = []<EOL>lines.append(("<STR_LIT>" % (self.name, self.status)).center(<NUM_LIT:50>, "<STR_LIT:->"))<EOL>lines.append("<STR_LIT>".format(self.item_count, self.size))<EOL>cap = self.consumed_capacity.get("<STR_LIT>", {})<EOL>read = "<STR_LIT>" + format_throughput(self.read_throughput, cap.get("<STR_LIT>"))<EOL>write = "<STR_LIT>" + format_throughput(self.write_throughput, cap.get("<STR_LIT>"))<EOL>lines.append(read + "<STR_LIT:U+0020>" + write)<EOL>if self.decreases_today > <NUM_LIT:0>:<EOL><INDENT>lines.append("<STR_LIT>" % self.decreases_today)<EOL><DEDENT>if self.range_key is None:<EOL><INDENT>lines.append(str(self.hash_key))<EOL><DEDENT>else:<EOL><INDENT>lines.append("<STR_LIT>" % (self.hash_key, self.range_key))<EOL><DEDENT>for field in itervalues(self.attrs):<EOL><INDENT>if field.key_type == "<STR_LIT>":<EOL><INDENT>lines.append(str(field))<EOL><DEDENT><DEDENT>for index_name, gindex in iteritems(self.global_indexes):<EOL><INDENT>cap = self.consumed_capacity.get(index_name)<EOL>lines.append(gindex.pformat(cap))<EOL><DEDENT>return "<STR_LIT:\n>".join(lines)<EOL>
Pretty string format