parameters: (self)
docstring: Write modifications to the file.
docstring_summary: Write modifications to the file.
docstring_tokens: Write modifications to the file .
function: 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)
function_tokens: 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 )