def _save_file ( self , filename , contents ) : with open ( filename , 'w' ) as f : f . write ( contents )
how to write and save html file in python
write the html file contents to disk
def _save_file(self, filename, contents):
        """write the html file contents to disk"""
        with open(filename, 'w') as f:
            f.write(contents)