(self)
Dump the list to the specified file.
Dump the list to the specified file.
Dump the list to the specified file .
def dump(self):
        """
        Dump the list to the specified file.
        """
        try:
            with open(self.filename, 'w') as fh:
                for l in self:
                    fh.write(l + "\n")
        except Exception:
            pass
def dump ( self ) : try : with open ( self . filename , 'w' ) as fh : for l in self : fh . write ( l + "\n" ) except Exception : pass