def _build_argv(self, cmdargv):
        argv = ['ssh']
        argv.extend(["-T", "-o", "BatchMode=yes", "-e", "none"])
        if self.port:
            argv.extend(["-p", str(self.port)])
        if self.keyfile and os.path.isfile(self.keyfile):
            argv.extend(['-i', str(self.keyfile)])
        if self.username is not None:
            argv.extend(["%s@%s" % (self.username, self.hostname)])
        else:
            argv.extend([self.hostname])
        argv.extend(["gerrit"])
        argv.extend(cmdargv)
        return argv
dataset/ETHPy150Open berrange/gerrymander/gerrymander/client.py/ClientLive._build_argv/original