pyjfuzz/core/pjf_executor.py
def get_output(self, stdin_content, stdin):
        """
        Try to get output in a separate thread
        """
        try:
            if stdin:
                if sys.version_info >= (3, 0):
                    self.process.stdin.write(bytes(stdin_content, "utf-8"))
                else:
                    self.process.stdin.write(stdin_content)
            self._out = self.process.communicate()[0]
        except (error, IOError):
            self._out = self._in
            pass
def get_output(self, stdin_content, stdin):
        try:
            if stdin:
                if sys.version_info >= (3, 0):
                    self.process.stdin.write(bytes(stdin_content, "utf-8"))
                else:
                    self.process.stdin.write(stdin_content)
            self._out = self.process.communicate()[0]
        except (error, IOError):
            self._out = self._in
            pass
def get_output ( self , stdin_content , stdin ) : try : if stdin : if sys . version_info >= ( 3 , 0 ) : self . process . stdin . write ( bytes ( stdin_content , "utf-8" ) ) else : self . process . stdin . write ( stdin_content ) self . _out = self . process . communicate ( ) [ 0 ] except ( error , IOError ) : self . _out = self . _in pass
Try to get output in a separate thread
Try to get output in a separate thread