def _format_attrs(self):
attrs = [<EOL>('<STR_LIT>', ibase.default_pprint(self._levels,<EOL>max_seq_items=False)),<EOL>('<STR_LIT>', ibase.default_pprint(self._codes,<EOL>max_seq_items=False))]<EOL>if com._any_not_none(*self.names):<EOL><INDENT>attrs.append(('<STR_LIT>', ibase.default_pprint(self.names)))<EOL><DEDENT>if self.sortorder is not None:<EOL><INDENT>attrs.append(('<STR_LIT>', ibase.default_pprint(self.sortorder)))<EOL><DEDENT>return attrs<EOL>
Return a list of tuples of the (attr,formatted_value)