code: def _get_repr_list(self):
          
          spacing = ' '*2
          text = ['']
          text.append("%sfile: %s" % (spacing, self._filename))
          text.append("%sextension: %d" % (spacing, self._info['hdunum']-1))
          text.append(
              "%stype: %s" % (spacing, _hdu_type_map[self._info['hdutype']]))
  
          extname = self.get_extname()
          if extname != "":
              text.append("%sextname: %s" % (spacing, extname))
          extver = self.get_extver()
          if extver != 0:
              text.append("%sextver: %s" % (spacing, extver))
  
          return text, spacing
docs: Get some representation data common to all HDU types