          elif os.listdir(self._faces_dir):
              err = "ERROR: Output faces folder should be empty: '{}'".format(self._faces_dir)
          if err:
              logger.error(err)
              exit(0)
          logger.verbose("Creating output folder at '%s'", self._faces_dir)
  
      def _export_faces(self):
          """ Export the faces to the output folder and update the alignments file with
          new hashes. """
 
</s> remove             exit(0)
 </s> add             sys.exit(1) </s> remove     def update_file_format(self, folder, filename):
        """ Convert old style alignments format to new style format """
 </s> add     def _update_file_format(self, folder, filename):
        """ Convert old style serialized alignments to new ``.fsa`` format.

        Parameters
        ----------
        folder: str
            The folder that the legacy alignments exist in
        filename: str
            The file name of the legacy alignments

        Returns
        -------
        str
            The full path to the newly created ``.fsa`` alignments file
        """ </s> remove     def update_face(self, frame, idx, alignment):
        """ Replace a face for given frame and index """
        logger.debug("Updating face %s for frame '%s'", idx, frame)
        self.data[frame][idx] = alignment
 </s> add     def update_face(self, frame_name, face_index, face):
        """ Update the face for the given frame_name at the given face index in :attr:`data`.

        Parameters
        ----------
        frame_name: str
            The frame name to update the face for. This should be the base name of the frame, not
            the full path
        face_index: int
            The index number of the face within the given frame_name to update
        face: dict
            The face information to update to the given frame_name at the given face_index,
            correctly formatted for storing in :attr:`data`
        """
        logger.debug("Updating face %s for frame_name '%s'", face_index, frame_name)
        self._data[frame_name]["faces"][face_index] = face </s> remove             exit(0)
 </s> add             sys.exit(1)
            sys.exit(0)
          elif os.listdir(self._faces_dir):
              err = "ERROR: Output faces folder should be empty: '{}'".format(self._faces_dir)
          if err:
              logger.error(err)
            sys.exit(0)
          logger.verbose("Creating output folder at '%s'", self._faces_dir)
  
      def _export_faces(self):
          """ Export the faces to the output folder and update the alignments file with
          new hashes. """
keep keep keep keep replace keep keep keep keep keep
 lib.alignments - Slight update (#978)

* lib.alignments update:
  - Minor structure change (faces to nested dictionary)
  - Refactor internal and external methods
  - Documentation 
tools/lib_alignments/jobs.py