  
  
  def backup_file(directory, filename):
      """ Backup a given file by appending .bk to the end """
      logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
      logger.trace("Backing up: '%s'", filename)
      origfile = os.path.join(directory, filename)
      backupfile = origfile + '.bk'
      if os.path.exists(backupfile):
          logger.trace("Removing existing file: '%s'", backup_file)
 
</s> remove         cv2.imdecode(img, cv2.IMREAD_UNCHANGED)).hexdigest()  # pylint: disable=no-member
 </s> add         cv2.imdecode(  # pylint:disable=no-member,c-extension-no-member
            img,
            cv2.IMREAD_UNCHANGED)).hexdigest()  # pylint:disable=no-member,c-extension-no-member </s> remove     logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
 </s> add     logger = logging.getLogger(__name__)  # pylint:disable=invalid-name </s> remove     logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
 </s> add     logger = logging.getLogger(__name__)  # pylint:disable=invalid-name </s> remove     logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
 </s> add     logger = logging.getLogger(__name__)  # pylint:disable=invalid-name </s> remove         image = cv2.imread(filename)  # pylint: disable=no-member
 </s> add         image = cv2.imread(filename)  # pylint:disable=no-member,c-extension-no-member
    logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
  
  
  def backup_file(directory, filename):
      """ Backup a given file by appending .bk to the end """
    logger = logging.getLogger(__name__)  # pylint:disable=invalid-name
      logger.trace("Backing up: '%s'", filename)
      origfile = os.path.join(directory, filename)
      backupfile = origfile + '.bk'
      if os.path.exists(backupfile):
          logger.trace("Removing existing file: '%s'", backup_file)
keep keep keep keep replace keep keep keep keep keep
 FaceswapError Exception. Added to cli and utils 
lib/utils.py