def __repr__(self):
spacing = '<STR_LIT:U+0020>'*<NUM_LIT:2><EOL>if not hasattr(self, '<STR_LIT>'):<EOL><INDENT>self.update_hdu_list()<EOL><DEDENT>rep = ['<STR_LIT>']<EOL>rep.append("<STR_LIT>" % (spacing, self._filename))<EOL>rep.append("<STR_LIT>" % (spacing, _modeprint_map[self.intmode]))<EOL>rep.append('<STR_LIT>' % (spacing, "<STR_LIT>", "<STR_LIT>"))<EOL>for i, hdu in enumerate(self.hdu_list):<EOL><INDENT>t = hdu._info['<STR_LIT>']<EOL>name = hdu.get_extname()<EOL>if name != '<STR_LIT>':<EOL><INDENT>ver = hdu.get_extver()<EOL>if ver != <NUM_LIT:0>:<EOL><INDENT>name = '<STR_LIT>' % (name, ver)<EOL><DEDENT><DEDENT>rep.append(<EOL>"<STR_LIT>" % (spacing, i, _hdu_type_map[t], name))<EOL><DEDENT>rep = '<STR_LIT:\n>'.join(rep)<EOL>return rep<EOL>
Text representation of some fits file metadata