@deprecated_renamed_argument('clobber', 'overwrite', '1.3')
def tabledump(filename, datafile=None, cdfile=None, hfile=None, ext=1, overwrite=False):
 (mode, closed) = _get_file_mode(filename, default='readonly')
 f = fitsopen(filename, mode=mode)
 try:
  if (not datafile):
   (root, tail) = os.path.splitext(f._HDUList__file.name)
   datafile = (((root + '_') + repr(ext)) + '.txt')
  f[ext].dump(datafile, cdfile, hfile, overwrite)
 finally:
  if closed:
   f._close()

@ deprecated_renamed_argument ( 'clobber' , 'overwrite' , '1.3' ) def tabledump ( filename , datafile = None , cdfile = None , hfile = None , ext = 1 , overwrite = False ) : ( mode , closed ) = _get_file_mode ( filename , default = 'readonly' ) f = fitsopen ( filename , mode = mode ) try : if ( not datafile ) : ( root , tail ) = os . path . splitext ( f . _HDUList__file . name ) datafile = ( ( ( root + '_' ) + repr ( ext ) ) + '.txt' ) f [ ext ] . dump ( datafile , cdfile , hfile , overwrite ) finally : if closed : f . _close ( )
dump a table hdu to a file in ascii format .