  #!/usr/bin python3
  """ Process wrapper for underlying faceswap commands for the GUI """
  import os
  import logging
  import re
  import signal
 
</s> remove from subprocess import PIPE, Popen
 </s> add  </s> remove     """ Control the underlying Faceswap tasks """
    def __init__(self, wrapper):
        logger.debug("Initializing %s", self.__class__.__name__)
        self.wrapper = wrapper
 </s> add     """ Control the underlying Faceswap tasks.

    wrapper: :class:`ProcessWrapper`
        The object responsible for managing this faceswap task
    """
    def __init__(self, wrapper: ProcessWrapper) -> None:
        logger.debug("Initializing %s (wrapper: %s)", self.__class__.__name__, wrapper)
        self._wrapper = wrapper </s> remove     def __init__(self):
 </s> add     def __init__(self) -> None: </s> remove     def set_callbacks(self):
        """ Set the tkinter variable callbacks """
 </s> add     @property
    def task(self) -> FaceswapControl:
        """ :class:`FaceswapControl`: The object that controls the underlying faceswap process """
        return self._task

    def _set_callbacks(self) -> None:
        """ Set the tkinter variable callbacks for performing an action or generating a command """
from __future__ import annotations
  #!/usr/bin python3
  """ Process wrapper for underlying faceswap commands for the GUI """
from __future__ import annotations
  import os
  import logging
  import re
  import signal
keep add keep keep keep keep
 bugfix: GUI force stdout/stderr reading to utf-8 
lib/gui/wrapper.py