  
      @staticmethod
      def check_updates():
          """ Check for updates and clone repo """
          get_config().tk_vars["consoleclear"].set(True)
          encoding = locale.getpreferredencoding()
  
          # Do the check
          cmd = Popen("git remote update && git status -uno", shell=True, stdout=PIPE, stderr=STDOUT)
          stdout, _ = cmd.communicate()
 
</s> remove         cmd = Popen("git remote update && git status -uno", shell=True, stdout=PIPE, stderr=STDOUT)
 </s> add         logger.info("Checking for updates...")
        update = False
        msg = ""
        gitcmd = "git remote update && git status -uno"
        cmd = Popen(gitcmd, shell=True, stdout=PIPE, stderr=STDOUT) </s> remove     @staticmethod
    def check_updates():
 </s> add     def update(self): </s> remove         logger.debug("Check output: %s", stdout.decode(encoding))
        logger.debug("Check returncode: %s", retcode)
 </s> add         logger.debug("'%s' output: %s", gitcmd, stdout.decode(encoding))
        logger.debug("'%s' returncode: %s", gitcmd, retcode) </s> remove         print(SysInfo().full_info())
 </s> add         info = SysInfo().full_info()
        self.clear_console()
        logger.debug("Obtained system information: %s", info)
        print(info)
        self.root.config(cursor="") </s> remove         # Do the update
        print("A new version is available. Updating...")
        cmd = Popen("git pull", shell=True, stdout=PIPE, stderr=STDOUT, bufsize=1)
 </s> add     @staticmethod
    def do_update(encoding):
        """ Update Faceswap """
        logger.info("A new version is available. Updating...")
        gitcmd = "git pull"
        cmd = Popen(gitcmd, shell=True, stdout=PIPE, stderr=STDOUT, bufsize=1)
        logger.debug("Updating Faceswap")
        self.root.config(cursor="watch")
        self.clear_console()
  
      @staticmethod
      def check_updates():
          """ Check for updates and clone repo """
        logger.debug("Updating Faceswap")
        self.root.config(cursor="watch")
        self.clear_console()
          encoding = locale.getpreferredencoding()
  
          # Do the check
          cmd = Popen("git remote update && git status -uno", shell=True, stdout=PIPE, stderr=STDOUT)
          stdout, _ = cmd.communicate()
keep keep keep keep replace keep keep keep keep keep
 More responsive FaceSwap update code 
lib/gui/menu.py