perceval/backends/core/mbox.py
def _copy_mbox(self, mbox):
        """Copy the contents of a mbox to a temporary file"""

        tmp_path = tempfile.mktemp(prefix='perceval_')

        with mbox.container as f_in:
            with open(tmp_path, mode='wb') as f_out:
                for l in f_in:
                    f_out.write(l)
        return tmp_path
def _copy_mbox(self, mbox):
        tmp_path = tempfile.mktemp(prefix='perceval_')

        with mbox.container as f_in:
            with open(tmp_path, mode='wb') as f_out:
                for l in f_in:
                    f_out.write(l)
        return tmp_path
def _copy_mbox ( self , mbox ) : tmp_path = tempfile . mktemp ( prefix = 'perceval_' ) with mbox . container as f_in : with open ( tmp_path , mode = 'wb' ) as f_out : for l in f_in : f_out . write ( l ) return tmp_path
Copy the contents of a mbox to a temporary file
Copy the contents of a mbox to a temporary file