(self)
Write modifications to the file.
Write modifications to the file.
Write modifications to the file .
def Write(self):
    """Write modifications to the file."""
    if not self.modified:
      return

    # Stringify before opening the file for writing.
    # If we fail, we won't truncate the file.
    string = str(self._snippet)
    with open(self._file_path, 'w') as f:
      f.write(string)
def Write ( self ) : if not self . modified : return # Stringify before opening the file for writing. # If we fail, we won't truncate the file. string = str ( self . _snippet ) with open ( self . _file_path , 'w' ) as f : f . write ( string )