qiskit/visualization/text.py
def dump(self, filename, encoding="utf8"):
        """
        Dumps the ascii art in the file.
        Args:
            filename (str): File to dump the ascii art.
            encoding (str): Optional. Default "utf-8".
        """
        with open(filename, mode='w', encoding=encoding) as text_file:
            text_file.write(self.single_string())
def dump(self, filename, encoding="utf8"):
        """
        Dumps the ascii art in the file.
        Args:
            filename (str): File to dump the ascii art.
            encoding (str): Optional. Default "utf-8".
        """
        with open(filename, mode='w', encoding=encoding) as text_file:
            text_file.write(self.single_string())
def dump ( self , filename , encoding = "utf8" ) : with open ( filename , mode = 'w' , encoding = encoding ) as text_file : text_file . write ( self . single_string ( ) )
Dumps the ascii art in the file.
        Args:
            filename (str): File to dump the ascii art.
            encoding (str): Optional. Default "utf-8".
Dumps the ascii art in the file . Args : filename ( str ) : File to dump the ascii art . encoding ( str ) : Optional . Default utf - 8 .