def _exec(cmd):
        """Execute command using subprocess.Popen
        :param cmd:
        :return: (code, stdout, stderr)
        """
        process = subprocess.Popen(cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE)

        # pylint: disable=unexpected-keyword-arg
        (stdout, stderr) = process.communicate(timeout=defaults.DEFAULT_VCS_TIMEOUT)

        return process.returncode, stdout.decode(), stderr.decode()
def _exec ( cmd ) : process = subprocess . Popen ( cmd , stderr = subprocess . PIPE , stdout = subprocess . PIPE ) ( stdout , stderr ) = process . communicate ( timeout = defaults . DEFAULT_VCS_TIMEOUT ) return process . returncode , stdout . decode ( ) , stderr . decode ( )
Execute command using subprocess.Popen
        :param cmd:
        :return: (code, stdout, stderr)