(self)
Save the current in-memory state.
Save the current in-memory state.
Save the current in - memory state .
def save(self):
        # type: () -> None
        """Save the current in-memory state.
        """
        self._ensure_have_load_only()

        for fname, parser in self._modified_parsers:
            logger.info("Writing to %s", fname)

            # Ensure directory exists.
            ensure_dir(os.path.dirname(fname))

            with open(fname, "w") as f:
                parser.write(f)
def save ( self ) : # type: () -> None self . _ensure_have_load_only ( ) for fname , parser in self . _modified_parsers : logger . info ( "Writing to %s" , fname ) # Ensure directory exists. ensure_dir ( os . path . dirname ( fname ) ) with open ( fname , "w" ) as f : parser . write ( f )